Model {
  Name                    "basic_components"
  Version                 6.5
  MdlSubVersion           0
  GraphicalInterface {
    NumRootInports          0
    NumRootOutports         0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.1728"
    NumModelReferences      0
    NumTestPointedSignals   127
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_/Vol_2D/Embedded_MATLAB_F"
"unction_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_/Vol_2D/Embedded_MATLAB_F"
"unction_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_/Vol_2D/Embedded_MATLAB_F"
"unction_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_/Vol_2D/Embedded_MATLAB_F"
"unction_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_1/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_1/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_1/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_1/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_1/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_10/Embedded_M"
"ATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_10/Embedded_M"
"ATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_10/Embedded_M"
"ATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_10/Embedded_M"
"ATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_10/Integrator"
"1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_2/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_2/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_2/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_2/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_2/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_3/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_3/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_3/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_3/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_3/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_4/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_4/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_4/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_4/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_4/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_5/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_5/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_5/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_5/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_5/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_6/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_6/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_6/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_6/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_6/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_7/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_7/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_7/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_7/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_7/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_8/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_8/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_8/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_8/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_8/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_9/Embedded_MA"
"TLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_9/Embedded_MA"
"TLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_9/Embedded_MA"
"TLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_9/Embedded_MA"
"TLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_10x_/Vol_2D_9/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/FR/In"
"tegrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/Vol_2"
"D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/Vol_2"
"D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/Vol_2"
"D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/Vol_2"
"D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_/Vol_2"
"D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/FR/Integrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/Vol_2D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_1/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/FR/Integrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/Vol_2D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_2/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/FR/Integrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/Vol_2D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_3/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/FR/Integrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/Vol_2D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_4/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/FR/Integrator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_wall_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/Vol_2D/Embedded_MATLAB_Function_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/Vol_2D/Embedded_MATLAB_Function_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Duct_Heat_Transfer_Wall_5x_/Du"
"ct_Heat_Transfer_Wall_5/Vol_2D/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/HR_Conv_Thermal_Capacity_/Inte"
"grator"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Node_2D_/Unit Delay"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Node_2D_/Unit Delay2"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Node_3D_/Unit Delay"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Node_3D_/Unit Delay2"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Node_4D_/Unit Delay"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Node_4D_/Unit Delay2"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              ""
      FullBlockPath           "basic_components/Thermal_Capacity_/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "rho"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               2
      LogSignal               1
      UseCustomName           1
      LogName                 "rho_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "T_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "m_air"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "m_air_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "m_dot_air"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "m_dot_air_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               6
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               7
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Viewer_Block_/Demux"
      PortIndex               8
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_viewer"
      MaxPoints               5000
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Vol_1D_/Embedded_MATLAB_Functi"
"on_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Vol_1D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Vol_1D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Vol_1D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Vol_1D_/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Vol_2D_/Embedded_MATLAB_Functi"
"on_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Vol_2D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Vol_2D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Vol_2D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Vol_2D_/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Vol_3D_/Embedded_MATLAB_Functi"
"on_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Vol_3D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Vol_3D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Vol_3D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Vol_3D_/Integrator1"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "p"
      FullBlockPath           "basic_components/Vol_4D_/Embedded_MATLAB_Functi"
"on_2"
      LogSignal               1
      UseCustomName           1
      LogName                 "p_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_gas"
      FullBlockPath           "basic_components/Vol_4D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               3
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_gas_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_CO2"
      FullBlockPath           "basic_components/Vol_4D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               4
      LogSignal               1
      UseCustomName           1
      LogName                 "x_CO2_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "x_H2O_liq"
      FullBlockPath           "basic_components/Vol_4D_/Embedded_MATLAB_Functi"
"on_2"
      PortIndex               5
      LogSignal               1
      UseCustomName           1
      LogName                 "x_H2O_liq_re_init"
      LimitDataPoints         1
      MaxPoints               1
      Decimation              2
    }
    TestPointedSignal {
      SignalName              "T"
      FullBlockPath           "basic_components/Vol_4D_/Integrator5"
      LogSignal               1
      UseCustomName           1
      LogName                 "T_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 13:39:04 2008"
  ModelVersionFormat      "1.%<AutoIncrement:1728>"
  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               Clock
      DisplayTime             off
    }
    Block {
      BlockType               Constant
    }
    Block {
      BlockType               Demux
      Outputs                 "4"
      DisplayOption           "none"
      BusSelectionMode        off
    }
    Block {
      BlockType               Fcn
      Expr                    "sin(u[1])"
      SampleTime              "-1"
    }
    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               Mux
      Inputs                  "4"
      DisplayOption           "none"
      UseBusObject            off
      BusObject               "BusObject"
      NonVirtualBus           off
    }
    Block {
      BlockType               Outport
      Port                    "1"
      UseBusObject            off
      BusObject               "BusObject"
      BusOutputAsStruct       off
      PortDimensions          "-1"
      SampleTime              "-1"
      DataType                "auto"
      OutDataType             "sfix(16)"
      OutScaling              "2^0"
      SignalType              "auto"
      SamplingMode            "auto"
      OutputWhenDisabled      "held"
      InitialOutput           "[]"
    }
    Block {
      BlockType               RandomNumber
      Mean                    "0"
      Variance                "1"
      Seed                    "0"
      SampleTime              "-1"
      VectorParams1D          on
    }
    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               Switch
      Criteria                "u2 >= Threshold"
      Threshold               "0"
      InputSameDT             on
      OutDataTypeMode         "Inherit via internal rule"
      RndMeth                 "Floor"
      SaturateOnIntegerOverflow on
      ZeroCross               on
      SampleTime              "-1"
    }
    Block {
      BlockType               Terminator
    }
    Block {
      BlockType               TransferFcn
      Numerator               "[1]"
      Denominator             "[1 2 1]"
      AbsoluteTolerance       "auto"
      Realization             "auto"
    }
    Block {
      BlockType               TransportDelay
      DelayTime               "1"
      InitialOutput           "0"
      BufferSize              "1024"
      FixedBuffer             off
      TransDelayFeedthrough   off
      PadeOrder               "0"
    }
    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                    "basic_components"
    Location                [6, 82, 1274, 967]
    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              "87"
    ReportName              "simulink-summary.rpt"
    Block {
      BlockType               SubSystem
      Name                    "Cockpit GUI"
      Ports                   []
      Position                [445, 632, 534, 717]
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      System {
        Name                    "Cockpit GUI"
        Location                [180, 254, 1246, 817]
        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               SubSystem
          Name                    "AIR_COND_AFT_CABIN_COLDHOT"
          Ports                   [0, 1]
          Position                [265, 132, 455, 168]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "AIR_COND_AFT_CABIN_COLDHOT"
          MaskDescription         "AIR_COND_AFT_CABIN_COLDHOT"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "AIR_COND_AFT_CABIN_COLDHOT"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "AIR_COND_AFT_CABIN_COLDHOT"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_AIR_COND_AFT_CABIN_COLDHOT"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "AIR_COND_AFT_CABIN_COLDHOT"
              SrcPort                 1
              DstBlock                "Out_AIR_COND_AFT_CABIN_COLDHOT"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "AIR_COND_COCKPIT_COLDHOT"
          Ports                   [0, 1]
          Position                [160, 21, 350, 59]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "AIR_COND_COCKPIT_COLDHOT"
          MaskDescription         "AIR_COND_COCKPIT_COLDHOT"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "AIR_COND_COCKPIT_COLDHOT"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "AIR_COND_COCKPIT_COLDHOT"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_AIR_COND_COCKPIT_COLDHOT"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "AIR_COND_COCKPIT_COLDHOT"
              SrcPort                 1
              DstBlock                "Out_AIR_COND_COCKPIT_COLDHOT"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "AIR_COND_FWD_CABIN_COLDHOT"
          Ports                   [0, 1]
          Position                [380, 23, 570, 57]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "AIR_COND_FWD_CABIN_COLDHOT"
          MaskDescription         "AIR_COND_FWD_CABIN_COLDHOT"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "AIR_COND_FWD_CABIN_COLDHOT"
            Location                [342, 454, 963, 732]
            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               Constant
              Name                    "AIR_COND_FWD_CABIN_COLDHOT"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "out_AIR_COND_FWD_CABIN_COLDHOT\n"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "AIR_COND_FWD_CABIN_COLDHOT"
              SrcPort                 1
              DstBlock                "out_AIR_COND_FWD_CABIN_COLDHOT\n"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "AIR_COND_HOT_AIR_ON_OFF"
          Ports                   [0, 1]
          Position                [825, 13, 1025, 67]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "CARGO_HEAT_AFT_HOT_AIR_OFF"
          MaskDescription         "CARGO_HEAT_AFT_HOT_AIR_OFF"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "AIR_COND_HOT_AIR_ON_OFF"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "AIR_COND_HOT_AIR_ON_OFF"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_AIR_COND_HOT_AIR_ON_OFF"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "AIR_COND_HOT_AIR_ON_OFF"
              SrcPort                 1
              DstBlock                "Out_AIR_COND_HOT_AIR_ON_OFF"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
          Ports                   [0, 1]
          Position                [595, 289, 830, 351]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
          MaskDescription         "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
            Location                [649, 548, 1147, 826]
            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               Constant
              Name                    "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
              SrcPort                 1
              DstBlock                "Out_CARGO_HEAT_AFT_AFT_ISOL_VALVE_OFF"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "CARGO_HEAT_AFT_COLDHOT"
          Ports                   [0, 1]
          Position                [480, 365, 665, 415]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "CARGO_HEAT_AFT_COLDHOT"
          MaskDescription         "CARGO_HEAT_AFT_COLDHOT"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "CARGO_HEAT_AFT_COLDHOT"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "CARGO_HEAT_AFT_COLDHOT"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_CARGO_HEAT_AFT_COLDHOT"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "CARGO_HEAT_AFT_COLDHOT"
              SrcPort                 1
              DstBlock                "Out_CARGO_HEAT_AFT_COLDHOT"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "CARGO_HEAT_AFT_HOT_AIR_OFF"
          Ports                   [0, 1]
          Position                [325, 285, 555, 345]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "VENTILATION_CAB_FANS_OFF"
          MaskDescription         "VENTILATION_CAB_FANS_OFF"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "CARGO_HEAT_AFT_HOT_AIR_OFF"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "CARGO_HEAT_AFT_HOT_AIR_OFF"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_CARGO_HEAT_AFT_HOT_AIR_OFF"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "CARGO_HEAT_AFT_HOT_AIR_OFF"
              SrcPort                 1
              DstBlock                "Out_CARGO_HEAT_AFT_HOT_AIR_OFF"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "CARGO_HEAT_FWD_COLDHOT"
          Ports                   [0, 1]
          Position                [45, 371, 240, 419]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "CARGO_HEAT_FWD_COLDHOT"
          MaskDescription         "CARGO_HEAT_FWD_COLDHOT"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "CARGO_HEAT_FWD_COLDHOT"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "CARGO_HEAT_FWD_COLDHOT"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_CARGO_HEAT_FWD_COLDHOT"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "CARGO_HEAT_FWD_COLDHOT"
              SrcPort                 1
              DstBlock                "Out_CARGO_HEAT_FWD_COLDHOT"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
          Ports                   [0, 1]
          Position                [60, 242, 295, 298]
          ShowName                off
          AttributesFormatString  "%<ReferenceBlock>"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
          MaskDescription         "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
            Location                [649, 548, 1195, 826]
            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               Constant
              Name                    "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
              SrcPort                 1
              DstBlock                "Out_CARGO_HEAT_FWD_FWD_ISOL_VALVE_OFF"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "HOT_AIR_HI_NORM_LO"
          Ports                   [0, 1]
          Position                [30, 17, 110, 73]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "HOT_AIR_HI_NORM_LO"
          MaskDescription         "HOT_AIR"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "HOT_AIR_HI_NORM_LO"
            Location                [649, 548, 1069, 826]
            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               Constant
              Name                    "HOT_AIR"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_HOT_AIR"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "HOT_AIR"
              SrcPort                 1
              DstBlock                "Out_HOT_AIR"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Pack1_ON_OFF"
          Ports                   [0, 1]
          Position                [30, 117, 120, 173]
          TreatAsAtomicUnit       on
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Pack1"
          MaskDescription         "Pack 1"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Pack1_ON_OFF"
            Location                [649, 548, 1069, 826]
            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               Constant
              Name                    "Pack1"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_Pack1"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "Pack1"
              SrcPort                 1
              DstBlock                "Out_Pack1"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Pack2_ON_OFF"
          Ports                   [0, 1]
          Position                [840, 122, 920, 178]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Pack2"
          MaskDescription         "Pack 2"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "Pack2_ON_OFF"
            Location                [649, 548, 1069, 826]
            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               Constant
              Name                    "Pack2"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              Value                   "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               Outport
              Name                    "Out_Pack2"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "Pack2"
              SrcPort                 1
              DstBlock                "Out_Pack2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "VENTILATION_BLOWER_OVRD"
          Ports                   [0, 1]
          Position                [40, 477, 225, 533]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "VENTILATION_BLOWER_OVRD"
          MaskDescription         "VENTILATION_BLOWER_OVRD"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "VENTILATION_BLOWER_OVRD"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "VENTILATION_BLOWER_OVRD"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_VENTILATION_BLOWER_OVRD"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "VENTILATION_BLOWER_OVRD"
              SrcPort                 1
              DstBlock                "Out_VENTILATION_BLOWER_OVRD"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "VENTILATION_CAB_FANS_OFF"
          Ports                   [0, 1]
          Position                [530, 476, 750, 534]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "VENTILATION_CAB_FANS_OFF"
          MaskDescription         "VENTILATION_CAB_FANS_OFF"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "VENTILATION_CAB_FANS_OFF"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "VENTILATION_CAB_FANS_OFF"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_VENTILATION_CAB_FANS_OFF"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "VENTILATION_CAB_FANS_OFF"
              SrcPort                 1
              DstBlock                "Out_VENTILATION_CAB_FANS_OFF"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "VENTILATION_EXTRACT_OVRD"
          Ports                   [0, 1]
          Position                [275, 483, 465, 537]
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "VENTILATION_EXTRACT_OVRD"
          MaskDescription         "VENTILATION_EXTRACT_OVRD"
          MaskIconFrame           on
          MaskIconOpaque          on
          MaskIconRotate          "none"
          MaskIconUnits           "autoscale"
          System {
            Name                    "VENTILATION_EXTRACT_OVRD"
            Location                [649, 548, 1069, 809]
            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               Constant
              Name                    "VENTILATION_EXTRACT_OVRD"
              Tag                     "Pack1"
              Position                [135, 85, 165, 115]
              AttributesFormatString  "Value=%<Value>"
              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"
            }
            Block {
              BlockType               Outport
              Name                    "Out_VENTILATION_EXTRACT_OVRD"
              Position                [310, 93, 340, 107]
              AttributesFormatString  "Value=%<Value>\\nName=%<Name>\\nTag=%<T"
"ag>"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              Labels                  [0, 0]
              SrcBlock                "VENTILATION_EXTRACT_OVRD"
              SrcPort                 1
              DstBlock                "Out_VENTILATION_EXTRACT_OVRD"
              DstPort                 1
            }
          }
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Duct_"
      Ports                   [3, 2]
      Position                [160, 96, 240, 154]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Diameter [m]|Length [m]|Initial Parameter: Pres"
"sure [Pa]|Initial Parameter: Temperature [K]|Initial Parameter: Water Vapor C"
"ontent|Initial Parameter: CO2 Content|Initial Parameter: Water Content|Minor "
"Loss Coefficient|Mode = 0: State Variables = Average Input variables, Mode = "
"1: State Variables = Input Higher Pressure"
      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;L=@2;p_init=@3;T_init=@4;x_H2O_gas_init=@5"
";x_CO2_init=@6;x_H2O_liq_init=@7;zeta=@8;mode=@9;"
      MaskDisplay             "plot([0.5],[0.0],[1 2],[2 2],[2.5],[4.0])\nport"
"_label('input',1,'1')\nport_label('input',2,'2')\nport_label('input',3,'Q_dot"
"')\nport_label('output',1,'1')\nport_label('output',2,'2')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,"
      System {
        Name                    "Duct_"
        Location                [2, 82, 1014, 732]
        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                [180, 88, 210, 102]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [495, 153, 525, 167]
          ForegroundColor         "green"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [340, 143, 370, 157]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "D"
          Position                [230, 320, 260, 350]
          Orientation             "up"
          ForegroundColor         "green"
          ShowName                off
          Value                   "D"
          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                   [2, 1]
          Position                [280, 254, 350, 301]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Volume');"
          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                    "L"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "D"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 160, 320, 200]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 2"
"3"
              Ports                   [2, 2]
              Position                [180, 100, 230, 160]
              FunctionName            "sf_sfun"
              PortCounts              "[2 2]"
              Port {
                PortNumber              2
                Name                    "V"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 171, 480, 189]
            }
            Block {
              BlockType               Outport
              Name                    "V"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 65]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "L"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "D"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              Name                    "V"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "V"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_1"
          Ports                   [3, 2]
          Position                [230, 87, 310, 143]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_1"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 11"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_2"
          Ports                   [3, 2]
          Position                [545, 132, 625, 188]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_2"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 16"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               Fcn
          Name                    "Fcn"
          Position                [195, 210, 225, 235]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Expr                    "u/2"
        }
        Block {
          BlockType               Constant
          Name                    "L"
          Position                [195, 320, 225, 350]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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               SubSystem
          Name                    "Vol_2D"
          Ports                   [4, 1]
          Position                [390, 104, 470, 176]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 20"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 24"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 25"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 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                [245, 241, 330, 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                [245, 211, 330, 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                [245, 271, 330, 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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out_1"
          Position                [330, 93, 360, 107]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [645, 168, 675, 182]
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "FR_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR_1"
          SrcPort                 1
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR_1"
          SrcPort                 2
          DstBlock                "Vol_2D"
          DstPort                 2
        }
        Line {
          SrcBlock                "Vol_2D"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, 55; -270, 0]
            DstBlock                "FR_1"
            DstPort                 2
          }
          Branch {
            DstBlock                "FR_2"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "FR_2"
          SrcPort                 1
          Points                  [10, 0; 0, -55; -265, 0]
          DstBlock                "Vol_2D"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "FR_2"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_2"
          SrcPort                 2
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          DstBlock                "Vol_2D"
          DstPort                 3
        }
        Line {
          SrcBlock                "L"
          SrcPort                 1
          Points                  [0, 0; 0, -50]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            DstBlock                "Fcn"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "D"
          SrcPort                 1
          Points                  [0, -25]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [15, 0; 0, -110]
          DstBlock                "Vol_2D"
          DstPort                 4
        }
        Line {
          SrcBlock                "Fcn"
          SrcPort                 1
          Points                  [0, -5]
          Branch {
            Points                  [0, -65]
            DstBlock                "FR_1"
            DstPort                 3
          }
          Branch {
            Points                  [320, 0]
            DstBlock                "FR_2"
            DstPort                 3
          }
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Duct_10x_"
      Ports                   [3, 3]
      Position                [160, 175, 240, 235]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Diameter [m]|Length [m]|Initial Parameter: Pres"
"sure [Pa]|Initial Parameter: Temperature [K]|Initial Parameter: Water Vapor C"
"ontent|Initial Parameter: CO2 Content|Initial Parameter: Water Content|Minor "
"Loss Coefficient|Mode = 0: State Variables = Average Input variables, Mode = "
"1: State Variables = Input Higher Pressure"
      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;L=@2;p_init=@3;T_init=@4;x_H2O_gas_init=@5"
";x_CO2_init=@6;x_H2O_liq_init=@7;zeta=@8;mode=@9;"
      MaskDisplay             "plot([0.5],[0.0],[1 2],[2 2],[2.5],[4.0])\ntext"
"(1.35,2.5,'10x')\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_"
"label('input',3,'Q_dot')\nport_label('output',1,'1')\nport_label('output',2,'"
"2')\nport_label('output',3,'Nodes')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,"
      System {
        Name                    "Duct_10x_"
        Location                [2, 82, 1270, 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              "64"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [170, 283, 200, 297]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [3160, 323, 3190, 337]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [100, 423, 130, 437]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [9, 1]
          Position                [1491, 170, 1839, 175]
          Orientation             "up"
          NamePlacement           "alternate"
          ShowName                off
          Inputs                  "9"
          DisplayOption           "bar"
        }
        Block {
          BlockType               Constant
          Name                    "D"
          Position                [230, 640, 260, 670]
          Orientation             "up"
          ForegroundColor         "green"
          ShowName                off
          Value                   "D"
          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                   [2, 1]
          Position                [334, 500, 381, 570]
          Orientation             "up"
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Volume');"
          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                    "L"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "D"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 160, 320, 200]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 2"
"1"
              Ports                   [2, 2]
              Position                [180, 100, 230, 160]
              FunctionName            "sf_sfun"
              PortCounts              "[2 2]"
              Port {
                PortNumber              2
                Name                    "V"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 171, 480, 189]
            }
            Block {
              BlockType               Outport
              Name                    "V"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 65]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "L"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "D"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              Name                    "V"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "V"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_1"
          Ports                   [3, 2]
          Position                [230, 282, 310, 338]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_1"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 18"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_10"
          Ports                   [3, 2]
          Position                [2915, 302, 2995, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_10"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 45"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_11"
          Ports                   [3, 2]
          Position                [3215, 302, 3295, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_11"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 26"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_2"
          Ports                   [3, 2]
          Position                [530, 302, 610, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_2"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 22"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_3"
          Ports                   [3, 2]
          Position                [825, 302, 905, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_3"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 30"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_4"
          Ports                   [3, 2]
          Position                [1125, 302, 1205, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_4"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 34"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_5"
          Ports                   [3, 2]
          Position                [1425, 302, 1505, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_5"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 38"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_6"
          Ports                   [3, 2]
          Position                [1720, 302, 1800, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_6"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 39"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_7"
          Ports                   [3, 2]
          Position                [2020, 302, 2100, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_7"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 40"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_8"
          Ports                   [3, 2]
          Position                [2320, 302, 2400, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_8"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 46"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR_9"
          Ports                   [3, 2]
          Position                [2620, 302, 2700, 358]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR_9"
            Location                [6, 82, 1002, 752]
            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               Inport
              Name                    "L"
              Position                [30, 288, 60, 302]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 650, 498, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [172, 650, 293, 655]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "D"
              Position                [85, 250, 115, 280]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D"
              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                   [16, 9]
              Position                [170, 385, 615, 510]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "D"
                  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                    "zeta"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_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                    "p_in_2"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  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 basic_componen"
"ts 47"
                  Ports                   [16, 10]
                  Position                [180, 120, 230, 460]
                  FunctionName            "sf_sfun"
                  PortCounts              "[16 10]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 471, 480, 489]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 345]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "T_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                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "m_air"
              Position                [100, 535, 130, 565]
              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                    "mode"
              Position                [85, 339, 115, 371]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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                    "zeta"
              Position                [85, 309, 115, 341]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [228, 680, 242, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 680, 447, 710]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [485, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [460, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [435, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [385, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [360, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [335, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [310, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [285, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [260, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [235, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [135, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [165, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D"
              SrcPort                 1
              Points                  [85, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "m_air"
              SrcPort                 1
              Points                  [0, 0; 90, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [205, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [170, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 45]
              Branch {
                Points                  [165, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 55]
              Branch {
                Points                  [130, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [95, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -150, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [160, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Annotation {
              Position                [430, 511]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               Fcn
          Name                    "Fcn"
          Position                [195, 455, 225, 480]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Expr                    "u/11"
        }
        Block {
          BlockType               Fcn
          Name                    "Fcn1"
          Position                [345, 455, 375, 480]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Expr                    "u/10"
        }
        Block {
          BlockType               Fcn
          Name                    "Fcn2"
          Position                [155, 415, 180, 445]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          ShowName                off
          Expr                    "u/10"
        }
        Block {
          BlockType               Constant
          Name                    "L"
          Position                [195, 640, 225, 670]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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               SubSystem
          Name                    "Vol_2D_1"
          Ports                   [4, 1]
          Position                [380, 313, 460, 382]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_1"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 59"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 60"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 61"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_10"
          Ports                   [4, 1]
          Position                [3060, 333, 3140, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_10"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 79"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 97"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 102"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_2"
          Ports                   [4, 1]
          Position                [675, 333, 755, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_2"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 27"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 28"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 29"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_3"
          Ports                   [4, 1]
          Position                [970, 333, 1050, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_3"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 31"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 32"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 33"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_4"
          Ports                   [4, 1]
          Position                [1275, 333, 1355, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_4"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 35"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 36"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 37"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_5"
          Ports                   [4, 1]
          Position                [1570, 333, 1650, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_5"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 41"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 42"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 62"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_6"
          Ports                   [4, 1]
          Position                [1865, 333, 1945, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_6"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 43"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 44"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 63"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_7"
          Ports                   [4, 1]
          Position                [2165, 333, 2245, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_7"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 48"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 49"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 64"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_8"
          Ports                   [4, 1]
          Position                [2470, 333, 2550, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_8"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 50"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 51"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 65"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D_9"
          Ports                   [4, 1]
          Position                [2765, 333, 2845, 402]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D_9"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 52"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 53"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 66"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 179]
              ForegroundColor         "green"
              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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out_1"
          Position                [330, 288, 360, 302]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [3315, 338, 3345, 352]
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Node"
          Position                [1658, 115, 1672, 145]
          Orientation             "up"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "FR_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR_1"
          SrcPort                 1
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR_1"
          SrcPort                 2
          DstBlock                "Vol_2D_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_1"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -40]
            Branch {
              Points                  [0, -65; 1030, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 1
            }
            Branch {
              DstBlock                "FR_2"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -260, 0]
            DstBlock                "FR_1"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "FR_11"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_11"
          SrcPort                 2
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "L"
          SrcPort                 1
          Points                  [0, -30]
          Branch {
            Points                  [0, 0; 135, 0]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            DstBlock                "Fcn"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "D"
          SrcPort                 1
          Points                  [0, -5; 125, 0]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          DstBlock                "Fcn1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Fcn"
          SrcPort                 1
          Points                  [0, 0; 0, -30]
          Branch {
            Points                  [300, 0]
            Branch {
              Points                  [295, 0]
              Branch {
                Points                  [300, 0]
                Branch {
                  Points                  [300, 0]
                  Branch {
                    Points                  [295, 0]
                    Branch {
                    Points                  [300, 0]
                    Branch {
                    Points                  [300, 0]
                    Branch {
                    Points                  [300, 0]
                    Branch {
                    Points                  [295, 0]
                    Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_10"
                    DstPort                 3
                    }
                    Branch {
                    Points                  [305, 0]
                    DstBlock                "FR_11"
                    DstPort                 3
                    }
                    }
                    Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_9"
                    DstPort                 3
                    }
                    }
                    Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_8"
                    DstPort                 3
                    }
                    }
                    Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_7"
                    DstPort                 3
                    }
                    }
                    Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_6"
                    DstPort                 3
                    }
                  }
                  Branch {
                    Points                  [0, -70]
                    DstBlock                "FR_5"
                    DstPort                 3
                  }
                }
                Branch {
                  Points                  [0, -70]
                  DstBlock                "FR_4"
                  DstPort                 3
                }
              }
              Branch {
                Points                  [0, -70]
                DstBlock                "FR_3"
                DstPort                 3
              }
            }
            Branch {
              Points                  [0, -70]
              DstBlock                "FR_2"
              DstPort                 3
            }
          }
          Branch {
            Points                  [0, -90]
            DstBlock                "FR_1"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "FR_2"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_1"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_2"
          SrcPort                 2
          DstBlock                "Vol_2D_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_2"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -70; 775, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 2
            }
            Branch {
              DstBlock                "FR_3"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_2"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_3"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          DstBlock                "Fcn2"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR_3"
          SrcPort                 2
          DstBlock                "Vol_2D_3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_3"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -75; 520, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 3
            }
            Branch {
              DstBlock                "FR_4"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_3"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_4"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -265, 0]
          DstBlock                "Vol_2D_3"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_4"
          SrcPort                 2
          DstBlock                "Vol_2D_4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_4"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -80; 255, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 4
            }
            Branch {
              DstBlock                "FR_5"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -260, 0]
            DstBlock                "FR_4"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_5"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_4"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_5"
          SrcPort                 2
          DstBlock                "Vol_2D_5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_5"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              DstBlock                "Bus\nCreator"
              DstPort                 5
            }
            Branch {
              DstBlock                "FR_6"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_5"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_6"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_5"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_6"
          SrcPort                 2
          DstBlock                "Vol_2D_6"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_6"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -80; -255, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 6
            }
            Branch {
              DstBlock                "FR_7"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_6"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_7"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -265, 0]
          DstBlock                "Vol_2D_6"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_7"
          SrcPort                 2
          DstBlock                "Vol_2D_7"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_7"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -75; -515, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 7
            }
            Branch {
              DstBlock                "FR_8"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_7"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_8"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -265, 0]
          DstBlock                "Vol_2D_7"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_8"
          SrcPort                 2
          DstBlock                "Vol_2D_8"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_8"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -70; -780, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 8
            }
            Branch {
              DstBlock                "FR_9"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -260, 0]
            DstBlock                "FR_8"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_9"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_8"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_9"
          SrcPort                 2
          DstBlock                "Vol_2D_9"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_9"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, -60]
            Branch {
              Points                  [0, -65; -1035, 0]
              DstBlock                "Bus\nCreator"
              DstPort                 9
            }
            Branch {
              DstBlock                "FR_10"
              DstPort                 1
            }
          }
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_9"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "FR_10"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -260, 0]
          DstBlock                "Vol_2D_9"
          DstPort                 2
        }
        Line {
          SrcBlock                "FR_10"
          SrcPort                 2
          DstBlock                "Vol_2D_10"
          DstPort                 1
        }
        Line {
          SrcBlock                "Vol_2D_10"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, 45; -255, 0]
            DstBlock                "FR_10"
            DstPort                 2
          }
          Branch {
            Points                  [0, -60]
            DstBlock                "FR_11"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "FR_11"
          SrcPort                 1
          Points                  [10, 0; 0, -30; -265, 0]
          DstBlock                "Vol_2D_10"
          DstPort                 2
        }
        Line {
          SrcBlock                "Fcn1"
          SrcPort                 1
          Points                  [0, 0; 0, -25]
          Branch {
            Points                  [295, 0]
            Branch {
              Points                  [295, 0]
              Branch {
                Points                  [305, 0]
                Branch {
                  Points                  [295, 0]
                  Branch {
                    Points                  [295, 0]
                    Branch {
                    Points                  [300, 0]
                    Branch {
                    Points                  [305, 0]
                    Branch {
                    Points                  [295, 0]
                    Branch {
                    Points                  [0, -35]
                    DstBlock                "Vol_2D_9"
                    DstPort                 4
                    }
                    Branch {
                    Points                  [295, 0; 0, -35]
                    DstBlock                "Vol_2D_10"
                    DstPort                 4
                    }
                    }
                    Branch {
                    Points                  [0, -35]
                    DstBlock                "Vol_2D_8"
                    DstPort                 4
                    }
                    }
                    Branch {
                    Points                  [0, -35]
                    DstBlock                "Vol_2D_7"
                    DstPort                 4
                    }
                    }
                    Branch {
                    Points                  [0, -35]
                    DstBlock                "Vol_2D_6"
                    DstPort                 4
                    }
                  }
                  Branch {
                    Points                  [0, -35]
                    DstBlock                "Vol_2D_5"
                    DstPort                 4
                  }
                }
                Branch {
                  Points                  [0, -35]
                  DstBlock                "Vol_2D_4"
                  DstPort                 4
                }
              }
              Branch {
                Points                  [0, -35]
                DstBlock                "Vol_2D_3"
                DstPort                 4
              }
            }
            Branch {
              Points                  [0, -35]
              DstBlock                "Vol_2D_2"
              DstPort                 4
            }
          }
          Branch {
            Points                  [0, -55]
            DstBlock                "Vol_2D_1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Bus\nCreator"
          SrcPort                 1
          DstBlock                "Node"
          DstPort                 1
        }
        Line {
          SrcBlock                "Fcn2"
          SrcPort                 1
          Points                  [180, 0]
          Branch {
            Points                  [295, 0]
            Branch {
              Points                  [295, 0; 0, 0]
              Branch {
                Points                  [305, 0]
                Branch {
                  Points                  [295, 0; 0, 0]
                  Branch {
                    Points                  [295, 0]
                    Branch {
                    Points                  [300, 0; 0, 0]
                    Branch {
                    Points                  [305, 0]
                    Branch {
                    Points                  [295, 0; 0, 0]
                    Branch {
                    DstBlock                "Vol_2D_9"
                    DstPort                 3
                    }
                    Branch {
                    Points                  [295, 0]
                    DstBlock                "Vol_2D_10"
                    DstPort                 3
                    }
                    }
                    Branch {
                    DstBlock                "Vol_2D_8"
                    DstPort                 3
                    }
                    }
                    Branch {
                    DstBlock                "Vol_2D_7"
                    DstPort                 3
                    }
                    }
                    Branch {
                    DstBlock                "Vol_2D_6"
                    DstPort                 3
                    }
                  }
                  Branch {
                    DstBlock                "Vol_2D_5"
                    DstPort                 3
                  }
                }
                Branch {
                  DstBlock                "Vol_2D_4"
                  DstPort                 3
                }
              }
              Branch {
                DstBlock                "Vol_2D_3"
                DstPort                 3
              }
            }
            Branch {
              DstBlock                "Vol_2D_2"
              DstPort                 3
            }
          }
          Branch {
            DstBlock                "Vol_2D_1"
            DstPort                 3
          }
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Duct_Heat_Transfer_Wall_"
      Ports                   [3, 2]
      Position                [160, 263, 375, 327]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Number of identical Units|Length Major Axis [m]"
"|Length Minor Axis [m]|Length [m]|Thickness Wall [m]|Thickness Isolation [m]|"
"Density Wall [kg/m³]|Density Isolation [kg/m³]|Specific Heat Capacity Wall [J"
"/kg/K]|Specific Heat Capacity Isolation [J/kg/K]|Thermal Conductivity Wall [J"
"/s/m/K]|Thermal Conductivity Isolation [J/s/m/K]|Ambient Temperature [K]|Init"
"ial Parameter: Temperature Wall [K]|Initial Parameter: Pressure [Pa]|Initial "
"Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initial Par"
"ameter: CO2 Content|Initial Parameter: Water Content|Minor Loss Coefficient|M"
"ode = 0: State Variables = Average Input variables, Mode = 1: State Variables"
" = Input Variables Higher Pressure"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskCallbackString      "||||||||||||||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,,,,,,,,"
      MaskVariables           "n_unit=@1;D_major=@2;D_minor=@3;L=@4;b_wall=@5;"
"b_isolation=@6;rho_wall=@7;rho_isolation=@8;c_wall=@9;c_isolation=@10;lambda_"
"wall=@11;lambda_isolation=@12;T_ambient=@13;T_wall_init=@14;p_init=@15;T_init"
"=@16;x_H2O_gas_init=@17;x_CO2_init=@18;x_H2O_liq_init=@19;zeta=@20;mode=@21;"
      MaskDisplay             "plot([-1],[0.5],[1.0 2.5 3 4 4.5 5],[1.5 1.5 2 "
"1 1.5 1.5],[7],[2.5])\nport_label('input',1,'p_in')\nport_label('input',2,'m_"
"dot_in')\nport_label('input',3,'Q_dot')\nport_label('output',1,'p_out')\nport"
"_label('output',2,'m_dot_out')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "1|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|N"
"aN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,,,,,,,,,,,,,"
      System {
        Name                    "Duct_Heat_Transfer_Wall_"
        Location                [176, 217, 1188, 887]
        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_in1"
          Position                [35, 78, 65, 92]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "m_dot_in1"
          Position                [335, 78, 365, 92]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [250, 118, 280, 132]
          ForegroundColor         "green"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "D_major"
          Position                [90, 310, 140, 340]
          Orientation             "up"
          ForegroundColor         "green"
          ShowName                off
          Value                   "D_major"
          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                    "D_minor"
          Position                [145, 310, 195, 340]
          Orientation             "up"
          ForegroundColor         "green"
          ShowName                off
          Value                   "D_minor"
          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, 1]
          Position                [230, 246, 360, 294]
          ForegroundColor         "green"
          ShowName                off
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          MaskType                "Stateflow"
          MaskDescription         "Embedded MATLAB block"
          MaskDisplay             "disp('Volume');"
          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                    "L"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "D_major"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "D_minor"
              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 basic_components 1"
"22"
              Ports                   [3, 2]
              Position                [180, 100, 230, 180]
              FunctionName            "sf_sfun"
              PortCounts              "[3 2]"
              Port {
                PortNumber              2
                Name                    "V"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 191, 480, 209]
            }
            Block {
              BlockType               Outport
              Name                    "V"
              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                "L"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              Name                    "V"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "V"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "FR"
          Ports                   [3, 3]
          Position                [90, 76, 205, 134]
          MinAlgLoopOccurrences   on
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "FR"
            Location                [0, 82, 996, 752]
            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               Inport
              Name                    "L"
              Position                [30, 628, 60, 642]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [377, 1025, 498, 1030]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator2"
              Ports                   [8, 1]
              Position                [182, 1025, 303, 1030]
              Orientation             "down"
              NamePlacement           "alternate"
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector3"
              Ports                   [1, 6]
              Position                [85, 37, 90, 138]
              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                [85, 142, 90, 243]
              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                    "Constant2"
              Position                [100, 910, 130, 940]
              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                    "D_major"
              Position                [85, 284, 140, 316]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [85, 319, 140, 351]
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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                   [28, 11]
              Position                [176, 725, 734, 885]
              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                    "x_H2O_gas"
                PropagatedSignals       "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "x_CO2"
                PropagatedSignals       "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "p"
                PropagatedSignals       "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "m_dot_air"
                PropagatedSignals       "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "p"
                PropagatedSignals       "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "n_unit"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  Position                [20, 171, 40, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "b_wall"
                  Position                [20, 206, 40, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "b_isolation"
                  Position                [20, 246, 40, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_wall"
                  Position                [20, 281, 40, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_isolation"
                  Position                [20, 316, 40, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "c_wall"
                  Position                [20, 351, 40, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "c_isolation"
                  Position                [20, 386, 40, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "lambda_wall"
                  Position                [20, 426, 40, 444]
                  Port                    "10"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "lambda_isolation"
                  Position                [20, 461, 40, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 496, 40, 514]
                  Port                    "12"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "zeta"
                  Position                [20, 531, 40, 549]
                  Port                    "13"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "mode"
                  Position                [20, 566, 40, 584]
                  Port                    "14"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_1"
                  Position                [20, 606, 40, 624]
                  Port                    "15"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_1"
                  Position                [20, 641, 40, 659]
                  Port                    "16"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_1"
                  Position                [20, 676, 40, 694]
                  Port                    "17"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_1"
                  Position                [20, 711, 40, 729]
                  Port                    "18"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_1"
                  Position                [20, 746, 40, 764]
                  Port                    "19"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_1"
                  Position                [20, 786, 40, 804]
                  Port                    "20"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "p_in_2"
                  Position                [20, 821, 40, 839]
                  Port                    "21"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "rho_in_2"
                  Position                [20, 856, 40, 874]
                  Port                    "22"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_in_2"
                  Position                [20, 891, 40, 909]
                  Port                    "23"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_gas_in_2"
                  Position                [20, 926, 40, 944]
                  Port                    "24"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_CO2_in_2"
                  Position                [20, 966, 40, 984]
                  Port                    "25"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "x_H2O_liq_in_2"
                  Position                [20, 1001, 40, 1019]
                  Port                    "26"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_wall"
                  Position                [20, 1036, 40, 1054]
                  Port                    "27"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "T_ambient"
                  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 basic_componen"
"ts 123"
                  Ports                   [28, 12]
                  Position                [180, 120, 230, 700]
                  FunctionName            "sf_sfun"
                  PortCounts              "[28 12]"
                  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"
                  }
                  Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 711, 480, 729]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_1"
                  Position                [460, 281, 480, 299]
                  Port                    "6"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_1"
                  Position                [460, 316, 480, 334]
                  Port                    "7"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "p_2"
                  Position                [460, 351, 480, 369]
                  Port                    "8"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "m_dot_air_2"
                  Position                [460, 386, 480, 404]
                  Port                    "9"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [460, 426, 480, 444]
                  Port                    "10"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "T_dot_wall"
                  Position                [460, 461, 480, 479]
                  Port                    "11"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 585]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 11
                }
                Line {
                  SrcBlock                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 12
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 13
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 14
                }
                Line {
                  SrcBlock                "p_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 15
                }
                Line {
                  SrcBlock                "rho_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 16
                }
                Line {
                  SrcBlock                "T_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 17
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 18
                }
                Line {
                  SrcBlock                "x_CO2_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 19
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_1"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 20
                }
                Line {
                  SrcBlock                "p_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 21
                }
                Line {
                  SrcBlock                "rho_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 22
                }
                Line {
                  SrcBlock                "T_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 23
                }
                Line {
                  SrcBlock                "x_H2O_gas_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 24
                }
                Line {
                  SrcBlock                "x_CO2_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 25
                }
                Line {
                  SrcBlock                "x_H2O_liq_in_2"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 26
                }
                Line {
                  SrcBlock                "T_wall"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 27
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 28
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
                Line {
                  Name                    "p_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 7
                  DstBlock                "p_1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_1"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 8
                  DstBlock                "m_dot_air_1"
                  DstPort                 1
                }
                Line {
                  Name                    "p_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 9
                  DstBlock                "p_2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air_2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 10
                  DstBlock                "m_dot_air_2"
                  DstPort                 1
                }
                Line {
                  Name                    "Q_dot_fluid"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 11
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  Name                    "T_dot_wall"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 12
                  DstBlock                "T_dot_wall"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator"
              Ports                   [1, 1]
              Position                [690, 910, 720, 940]
              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                    "T_ambient"
              Position                [765, 670, 890, 710]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "T_ambient"
              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                    "b_isolation"
              Position                [85, 388, 150, 422]
              ForegroundColor         "green"
              ShowName                off
              Value                   "b_isolation"
              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                    "b_wall"
              Position                [85, 354, 140, 386]
              ForegroundColor         "green"
              ShowName                off
              Value                   "b_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                    "c_isolation"
              Position                [85, 528, 150, 562]
              ForegroundColor         "green"
              ShowName                off
              Value                   "c_isolation"
              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                [85, 494, 140, 526]
              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                    "lambda_isolation"
              Position                [85, 598, 170, 632]
              ForegroundColor         "green"
              ShowName                off
              Value                   "lambda_isolation"
              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                    "lambda_wall"
              Position                [85, 563, 150, 597]
              ForegroundColor         "green"
              ShowName                off
              Value                   "lambda_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                    "mode"
              Position                [85, 674, 115, 706]
              ForegroundColor         "green"
              ShowName                off
              Value                   "mode"
              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_unit"
              Position                [85, 249, 140, 281]
              ForegroundColor         "green"
              ShowName                off
              Value                   "n_unit"
              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_isolation"
              Position                [85, 458, 150, 492]
              ForegroundColor         "green"
              ShowName                off
              Value                   "rho_isolation"
              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_wall"
              Position                [85, 424, 140, 456]
              ForegroundColor         "green"
              ShowName                off
              Value                   "rho_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                    "zeta"
              Position                [85, 639, 115, 671]
              ForegroundColor         "green"
              ShowName                off
              Value                   "zeta"
              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_1"
              Position                [238, 1055, 252, 1085]
              Orientation             "down"
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Out_2"
              Position                [433, 1055, 447, 1085]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_fluid"
              Position                [648, 1055, 662, 1085]
              Orientation             "down"
              ForegroundColor         "blue"
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Bus\nCreator2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_1"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 6
              Points                  [590, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 26
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 5
              Points                  [570, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 25
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 4
              Points                  [550, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 24
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 3
              Points                  [530, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 23
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 2
              Points                  [510, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 22
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector4"
              SrcPort                 1
              Points                  [490, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 21
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              DstBlock                "Bus\nSelector4"
              DstPort                 1
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 6
              Points                  [470, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 20
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 5
              Points                  [450, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 19
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 4
              Points                  [430, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 18
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 3
              Points                  [410, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 17
            }
            Line {
              Name                    "<rho>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 2
              Points                  [390, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 16
            }
            Line {
              Name                    "<p>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector3"
              SrcPort                 1
              Points                  [370, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 15
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              Points                  [305, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 13
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              DstBlock                "Bus\nSelector3"
              DstPort                 1
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "L"
              SrcPort                 1
              Points                  [340, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 12
            }
            Line {
              Labels                  [2, 0]
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [60, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 2
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                "Constant2"
              SrcPort                 1
              Points                  [0, 0; 100, 0]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 4
              }
              Branch {
                Points                  [195, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 1
              Points                  [0, 0; 0, 15]
              Branch {
                DstBlock                "Bus\nCreator2"
                DstPort                 2
              }
              Branch {
                Points                  [195, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 2
              Points                  [0, 0; 0, 25]
              Branch {
                Points                  [-35, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 3
              }
              Branch {
                Points                  [160, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 3
              Points                  [0, 0; 0, 45]
              Branch {
                Points                  [155, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 6
              }
              Branch {
                Points                  [-40, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 6
              }
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 4
              Points                  [0, 0; 0, 55]
              Branch {
                Points                  [120, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 7
              }
              Branch {
                Points                  [-75, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 7
              }
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 5
              Points                  [0, 0; 0, 65]
              Branch {
                Points                  [-110, 0]
                DstBlock                "Bus\nCreator2"
                DstPort                 8
              }
              Branch {
                Points                  [85, 0]
                DstBlock                "Bus\nCreator1"
                DstPort                 8
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 6
              Points                  [0, 75; -265, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 7
              Points                  [0, 85; -255, 0]
              DstBlock                "Bus\nCreator2"
              DstPort                 5
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 8
              Points                  [0, 95; -170, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 9
              Points                  [0, 105; -160, 0]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Out_2"
              DstPort                 1
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              Points                  [325, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 14
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [80, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "b_wall"
              SrcPort                 1
              Points                  [100, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 4
            }
            Line {
              SrcBlock                "b_isolation"
              SrcPort                 1
              Points                  [110, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 5
            }
            Line {
              SrcBlock                "rho_wall"
              SrcPort                 1
              Points                  [140, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "rho_isolation"
              SrcPort                 1
              Points                  [150, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 7
            }
            Line {
              SrcBlock                "c_wall"
              SrcPort                 1
              Points                  [180, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 8
            }
            Line {
              SrcBlock                "c_isolation"
              SrcPort                 1
              Points                  [190, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 9
            }
            Line {
              SrcBlock                "lambda_wall"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 10
            }
            Line {
              SrcBlock                "lambda_isolation"
              SrcPort                 1
              Points                  [210, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 11
            }
            Line {
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 10
              DstBlock                "Q_dot_fluid"
              DstPort                 1
            }
            Line {
              SrcBlock                "T_ambient"
              SrcPort                 1
              Points                  [-35, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 28
            }
            Line {
              SrcBlock                "Embedded\nMATLA Function"
              SrcPort                 11
              DstBlock                "Integrator"
              DstPort                 1
            }
            Line {
              SrcBlock                "Integrator"
              SrcPort                 1
              Points                  [0, 10; 45, 0; 0, -250; -45, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 27
            }
            Line {
              SrcBlock                "n_unit"
              SrcPort                 1
              Points                  [40, 0]
              DstBlock                "Embedded\nMATLA Function"
              DstPort                 1
            }
            Annotation {
              Position                [430, 886]
              UseDisplayTextAsClickCallback off
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "L"
          Position                [55, 310, 85, 340]
          Orientation             "up"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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               Sum
          Name                    "Sum"
          Ports                   [2, 1]
          Position                [305, 115, 325, 135]
          ShowName                off
          IconShape               "round"
          Inputs                  "|++"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               SubSystem
          Name                    "Vol_2D"
          Ports                   [4, 1]
          Position                [390, 79, 470, 151]
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Vol_2D"
            Location                [198, 172, 1194, 826]
            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                [200, 78, 230, 92]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "In_2"
              Position                [200, 183, 230, 197]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot"
              Position                [200, 263, 230, 277]
              Orientation             "left"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "V"
              Position                [275, 128, 305, 142]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               BusCreator
              Name                    "Bus\nCreator1"
              Ports                   [8, 1]
              Position                [1085, 531, 1090, 654]
              ShowName                off
              Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2"
"O_gas','x_CO2','x_H2O_liq'"
              DisplayOption           "bar"
            }
            Block {
              BlockType               BusSelector
              Name                    "Bus\nSelector2"
              Ports                   [1, 5]
              Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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.5000"
"00]"
                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 basic_componen"
"ts 54"
                  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                [385, 308, 575, 622]
              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.5000"
"00]"
                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 basic_componen"
"ts 55"
                  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                   [6, 5]
              Position                [735, 324, 900, 686]
              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"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "p_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              2
                Name                    "rho"
                PropagatedSignals       "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "x_H2O_gas"
                PropagatedSignals       "x_WV"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "x_H2O_gas_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
              Port {
                PortNumber              4
                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              5
                Name                    "x_H2O_liq"
                PropagatedSignals       "x_H2O"
                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.5000"
"00]"
                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               Demux
                  Name                    " Demux "
                  Ports                   [1, 1]
                  Position                [270, 280, 320, 320]
                  Outputs                 "1"
                }
                Block {
                  BlockType               "S-Function"
                  Name                    " SFunction "
                  Tag                     "Stateflow S-Function basic_componen"
"ts 67"
                  Ports                   [6, 6]
                  Position                [180, 102, 230, 243]
                  FunctionName            "sf_sfun"
                  PortCounts              "[6 6]"
                  Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                  Name                    " Terminator "
                  Position                [460, 291, 480, 309]
                }
                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                    "x_H2O_gas"
                  Position                [460, 171, 480, 189]
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_CO2"
                  Position                [460, 206, 480, 224]
                  Port                    "4"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "x_H2O_liq"
                  Position                [460, 246, 480, 264]
                  Port                    "5"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                " SFunction "
                  SrcPort                 1
                  Points                  [0, 190]
                  DstBlock                " Demux "
                  DstPort                 1
                }
                Line {
                  SrcBlock                " Demux "
                  SrcPort                 1
                  DstBlock                " Terminator "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T"
                  SrcPort                 1
                  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                "V"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 6
                }
                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                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 4
                  DstBlock                "x_H2O_gas"
                  DstPort                 1
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 5
                  DstBlock                "x_CO2"
                  DstPort                 1
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 6
                  DstBlock                "x_H2O_liq"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator1"
              Ports                   [2, 1]
              Position                [620, 335, 665, 370]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
              Port {
                PortNumber              1
                Name                    "T"
                TestPoint               on
                RTWStorageClass         "Auto"
                DataLogging             on
                DataLoggingNameMode     "Custom"
                DataLoggingName         "T_re_init"
                DataLoggingLimitDataPoints on
                DataLoggingMaxPoints    "1"
              }
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator2"
              Ports                   [2, 1]
              Position                [620, 395, 665, 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                    "Integrator3"
              Ports                   [2, 1]
              Position                [620, 455, 665, 490]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator4"
              Ports                   [2, 1]
              Position                [620, 515, 665, 550]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Integrator
              Name                    "Integrator5"
              Ports                   [2, 1]
              Position                [620, 575, 665, 610]
              NamePlacement           "alternate"
              ShowName                off
              InitialConditionSource  "external"
              LimitOutput             on
              LowerSaturationLimit    "0"
              IgnoreLimit             off
            }
            Block {
              BlockType               Constant
              Name                    "T_init"
              Position                [245, 181, 330, 209]
              ForegroundColor         "green"
              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               Constant
              Name                    "m_dot_air"
              Position                [870, 250, 900, 280]
              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                [245, 151, 330, 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                [245, 241, 330, 269]
              ForegroundColor         "green"
              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                [245, 211, 330, 239]
              ForegroundColor         "green"
              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                [245, 271, 330, 299]
              ForegroundColor         "green"
              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                [1125, 588, 1155, 602]
              ForegroundColor         "blue"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 1
              DstBlock                "Integrator1"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot"
              SrcPort                 1
              Points                  [-165, 0; 0, 345]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 16
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                "m_dot_air"
              SrcPort                 1
              Points                  [75, 0; 0, 335]
              DstBlock                "Bus\nCreator1"
              DstPort                 5
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 2
              DstBlock                "Integrator2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Embedded_MATLAB_Function_1"
              SrcPort                 3
              DstBlock                "Integrator3"
              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 {
              SrcBlock                "Integrator3"
              SrcPort                 1
              Points                  [20, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 3
              }
              Branch {
                Points                  [0, 165; -330, 0; 0, -285]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "Integrator4"
              SrcPort                 1
              Points                  [25, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 4
              }
              Branch {
                Points                  [0, 100; -340, 0; 0, -260]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 4
              }
            }
            Line {
              SrcBlock                "Integrator5"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 5
              }
              Branch {
                Points                  [0, 35; -350, 0; 0, -235]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 5
              }
            }
            Line {
              Name                    "p"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 1
              Points                  [135, 0; 0, 175]
              DstBlock                "Bus\nCreator1"
              DstPort                 1
            }
            Line {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 2
              Points                  [120, 0; 0, 120]
              DstBlock                "Bus\nCreator1"
              DstPort                 2
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 3
              Points                  [60, 0; 0, 110]
              DstBlock                "Bus\nCreator1"
              DstPort                 6
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 4
              Points                  [45, 0; 0, 55]
              DstBlock                "Bus\nCreator1"
              DstPort                 7
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                "Embedded_MATLAB_Function_2"
              SrcPort                 5
              DstBlock                "Bus\nCreator1"
              DstPort                 8
            }
            Line {
              Name                    "m_air"
              SrcBlock                "Integrator2"
              SrcPort                 1
              Points                  [15, 0]
              Branch {
                Points                  [0, -125; 310, 0; 0, 295]
                DstBlock                "Bus\nCreator1"
                DstPort                 4
              }
              Branch {
                Labels                  [1, 1]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 2
              }
              Branch {
                Points                  [0, 230; -320, 0; 0, -310]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 2
              }
            }
            Line {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                "Integrator1"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                Points                  [0, -50; 330, 0; 0, 265]
                DstBlock                "Bus\nCreator1"
                DstPort                 3
              }
              Branch {
                Points                  [0, 295; -310, 0]
                DstBlock                "Embedded_MATLAB_Function_1"
                DstPort                 1
              }
              Branch {
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 1
              }
            }
            Line {
              SrcBlock                "In_1"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector2"
              DstPort                 1
            }
            Line {
              SrcBlock                "Bus\nCreator1"
              SrcPort                 1
              DstBlock                "Out"
              DstPort                 1
            }
            Line {
              SrcBlock                "In_2"
              SrcPort                 1
              Points                  [0, 0]
              DstBlock                "Bus\nSelector5"
              DstPort                 1
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 1
              Points                  [-85, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 6
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 2
              Points                  [-90, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 7
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 3
              Points                  [-95, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 8
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 4
              Points                  [-100, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 9
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector2"
              SrcPort                 5
              Points                  [-105, 0; 0, 370]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 10
            }
            Line {
              Name                    "<T>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 1
              Points                  [-110, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 11
            }
            Line {
              Name                    "<m_dot_air>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 2
              Points                  [-115, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 12
            }
            Line {
              Name                    "<x_H2O_gas>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 3
              Points                  [-120, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 13
            }
            Line {
              Name                    "<x_CO2>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 4
              Points                  [-125, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 14
            }
            Line {
              Name                    "<x_H2O_liq>"
              Labels                  [0, 0]
              SrcBlock                "Bus\nSelector5"
              SrcPort                 5
              Points                  [-130, 0; 0, 365]
              DstBlock                "Embedded_MATLAB_Function_1"
              DstPort                 15
            }
            Line {
              SrcBlock                "V"
              SrcPort                 1
              Points                  [30, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, 520]
                DstBlock                "Embedded_MATLAB_Function_2"
                DstPort                 6
              }
            }
            Line {
              SrcBlock                "p_init"
              SrcPort                 1
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "T_init"
              SrcPort                 1
              Points                  [80, 0]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 3
              }
              Branch {
                Points                  [0, -80; 165, 0; 0, 245]
                DstBlock                "Integrator1"
                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
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 6
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [10, 0; 0, 275]
              DstBlock                "Integrator2"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 2
              Points                  [15, 0; 0, 290]
              DstBlock                "Integrator3"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 3
              Points                  [20, 0; 0, 305]
              DstBlock                "Integrator4"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 4
              Points                  [25, 0; 0, 320]
              DstBlock                "Integrator5"
              DstPort                 2
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "p_out1"
          Position                [510, 108, 540, 122]
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "m_dot_out1"
          Position                [230, 78, 260, 92]
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "p_in1"
          SrcPort                 1
          DstBlock                "FR"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR"
          SrcPort                 1
          DstBlock                "m_dot_out1"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR"
          SrcPort                 2
          DstBlock                "Vol_2D"
          DstPort                 2
        }
        Line {
          SrcBlock                "Vol_2D"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            Points                  [0, 70; -410, 0]
            DstBlock                "FR"
            DstPort                 2
          }
          Branch {
            DstBlock                "p_out1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "L"
          SrcPort                 1
          Points                  [0, 0; 0, -50]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, -130]
            DstBlock                "FR"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "D_major"
          SrcPort                 1
          Points                  [0, -35]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [0, -125]
          DstBlock                "Vol_2D"
          DstPort                 4
        }
        Line {
          SrcBlock                "D_minor"
          SrcPort                 1
          Points                  [0, -20]
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "m_dot_in1"
          SrcPort                 1
          DstBlock                "Vol_2D"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          DstBlock                "Sum"
          DstPort                 1
        }
        Line {
          SrcBlock                "FR"
          SrcPort                 3
          Points                  [15, 0; 0, 40; 90, 0]
          DstBlock                "Sum"
          DstPort                 2
        }
        Line {
          SrcBlock                "Sum"
          SrcPort                 1
          DstBlock                "Vol_2D"
          DstPort                 3
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Duct_Heat_Transfer_Wall_5x_"
      Ports                   [3, 3]
      Position                [160, 350, 375, 410]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Number of identical Units|Length Major Axis [m]"
"|Length Minor Axis [m]|Length [m]|Thickness Wall [m]|Thickness Isolation [m]|"
"Density Wall [kg/m³]|Density Isolation [kg/m³]|Specific Heat Capacity Wall [J"
"/kg/K]|Specific Heat Capacity Isolation [J/kg/K]|Thermal Conductivity Wall [J"
"/s/m/K]|Thermal Conductivity Isolation [J/s/m/K]|Ambient Temperature [K]|Init"
"ial Parameter: Temperature Wall [K]|Initial Parameter: Pressure [Pa]|Initial "
"Parameter: Temperature [K]|Initial Parameter: Water Vapor Content|Initial Par"
"ameter: CO2 Content|Initial Parameter: Water Content|Minor Loss Coefficient|M"
"ode = 0: State Variables = Average Input variables, Mode = 1: State Variables"
" = Input Variables Higher Pressure"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskCallbackString      "||||||||||||||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,,,,,,,,"
      MaskVariables           "n_unit=@1;D_major=@2;D_minor=@3;L=@4;b_wall=@5;"
"b_isolation=@6;rho_wall=@7;rho_isolation=@8;c_wall=@9;c_isolation=@10;lambda_"
"wall=@11;lambda_isolation=@12;T_ambient=@13;T_wall_init=@14;p_init=@15;T_init"
"=@16;x_H2O_gas_init=@17;x_CO2_init=@18;x_H2O_liq_init=@19;zeta=@20;mode=@21;"
      MaskDisplay             "plot([-1],[0.5],[1.0 2.5 3 4 4.5 5],[1.5 1.5 2 "
"1 1.5 1.5],[7],[2.5])\ntext(1.5,1.8,'5x')\nport_label('input',1,'p_in')\nport"
"_label('input',2,'m_dot_in')\nport_label('input',3,'Q_dot')\nport_label('outp"
"ut',1,'p_out')\nport_label('output',2,'m_dot_out')\nport_label('output',3,'No"
"de')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "1|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|N"
"aN|NaN|NaN|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,,,,,,,,,,,,,"
      System {
        Name                    "Duct_Heat_Transfer_Wall_5x_"
        Location                [2, 82, 1014, 736]
        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_in"
          Position                [25, 303, 55, 317]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "m_dot_in"
          Position                [25, 263, 55, 277]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [25, 338, 55, 352]
          ForegroundColor         "red"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [4, 1]
          Position                [318, 95, 667, 100]
          Orientation             "up"
          NamePlacement           "alternate"
          ShowName                off
          DisplayOption           "bar"
        }
        Block {
          BlockType               SubSystem
          Name                    "Duct_Heat_Transfer_Wall_1"
          Ports                   [3, 2]
          Position                [100, 240, 315, 300]
          NamePlacement           "alternate"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Duct_Heat_Transfer_Wall_1"
            Location                [-62, 327, 950, 977]
            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_in"
              Position                [175, 88, 205, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_in"
              Position                [475, 88, 505, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_ext"
              Position                [390, 128, 420, 142]
              ForegroundColor         "green"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "D_major"
              Position                [230, 320, 280, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [285, 320, 335, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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, 1]
              Position                [370, 256, 500, 304]
              ForegroundColor         "green"
              ShowName                off
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              MaskType                "Stateflow"
              MaskDescription         "Embedded MATLAB block"
              MaskDisplay             "disp('Volume');"
              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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  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 basic_componen"
"ts 68"
                  Ports                   [3, 2]
                  Position                [180, 100, 230, 180]
                  FunctionName            "sf_sfun"
                  PortCounts              "[3 2]"
                  Port {
                    PortNumber              2
                    Name                    "V"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 191, 480, 209]
                }
                Block {
                  BlockType               Outport
                  Name                    "V"
                  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                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  Name                    "V"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 2
                  DstBlock                "V"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               SubSystem
              Name                    "FR"
              Ports                   [3, 3]
              Position                [230, 86, 345, 144]
              MinAlgLoopOccurrences   on
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "FR"
                Location                [0, 82, 996, 752]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                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               Inport
                  Name                    "L"
                  Position                [30, 628, 60, 642]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [377, 1025, 498, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator2"
                  Ports                   [8, 1]
                  Position                [182, 1025, 303, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector3"
                  Ports                   [1, 6]
                  Position                [85, 37, 90, 138]
                  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                [85, 142, 90, 243]
                  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                    "Constant2"
                  Position                [100, 910, 130, 940]
                  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                    "D_major"
                  Position                [85, 284, 140, 316]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_major"
                  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                    "D_minor"
                  Position                [85, 319, 140, 351]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_minor"
                  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                   [28, 11]
                  Position                [176, 725, 734, 885]
                  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                    "x_H2O_gas"
                    PropagatedSignals       "x_H2O_gas"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              4
                    Name                    "x_CO2"
                    PropagatedSignals       "x_CO2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O_liq"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              6
                    Name                    "p"
                    PropagatedSignals       "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              7
                    Name                    "m_dot_air"
                    PropagatedSignals       "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "p"
                    PropagatedSignals       "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    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                    "n_unit"
                    Position                [20, 101, 40, 119]
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_major"
                    Position                [20, 136, 40, 154]
                    Port                    "2"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_minor"
                    Position                [20, 171, 40, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_wall"
                    Position                [20, 206, 40, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_isolation"
                    Position                [20, 246, 40, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_wall"
                    Position                [20, 281, 40, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_isolation"
                    Position                [20, 316, 40, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_wall"
                    Position                [20, 351, 40, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_isolation"
                    Position                [20, 386, 40, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_wall"
                    Position                [20, 426, 40, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_isolation"
                    Position                [20, 461, 40, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "L"
                    Position                [20, 496, 40, 514]
                    Port                    "12"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "zeta"
                    Position                [20, 531, 40, 549]
                    Port                    "13"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "mode"
                    Position                [20, 566, 40, 584]
                    Port                    "14"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_1"
                    Position                [20, 606, 40, 624]
                    Port                    "15"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_1"
                    Position                [20, 641, 40, 659]
                    Port                    "16"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_1"
                    Position                [20, 676, 40, 694]
                    Port                    "17"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_1"
                    Position                [20, 711, 40, 729]
                    Port                    "18"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_1"
                    Position                [20, 746, 40, 764]
                    Port                    "19"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_1"
                    Position                [20, 786, 40, 804]
                    Port                    "20"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_2"
                    Position                [20, 821, 40, 839]
                    Port                    "21"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_2"
                    Position                [20, 856, 40, 874]
                    Port                    "22"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_2"
                    Position                [20, 891, 40, 909]
                    Port                    "23"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_2"
                    Position                [20, 926, 40, 944]
                    Port                    "24"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_2"
                    Position                [20, 966, 40, 984]
                    Port                    "25"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_2"
                    Position                [20, 1001, 40, 1019]
                    Port                    "26"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_wall"
                    Position                [20, 1036, 40, 1054]
                    Port                    "27"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_ambient"
                    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 basic_compon"
"ents 10"
                    Ports                   [28, 12]
                    Position                [180, 120, 230, 700]
                    FunctionName            "sf_sfun"
                    PortCounts              "[28 12]"
                    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"
                    }
                    Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    }
                    Block {
                    BlockType               Terminator
                    Name                    " Terminator "
                    Position                [460, 711, 480, 729]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_1"
                    Position                [460, 281, 480, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_1"
                    Position                [460, 316, 480, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_2"
                    Position                [460, 351, 480, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_2"
                    Position                [460, 386, 480, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "Q_dot_fluid"
                    Position                [460, 426, 480, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "T_dot_wall"
                    Position                [460, 461, 480, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 585]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "n_unit"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "D_major"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 2
                    }
                    Line {
                    SrcBlock                "D_minor"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 3
                    }
                    Line {
                    SrcBlock                "b_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 4
                    }
                    Line {
                    SrcBlock                "b_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 5
                    }
                    Line {
                    SrcBlock                "rho_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    Line {
                    SrcBlock                "rho_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 7
                    }
                    Line {
                    SrcBlock                "c_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 8
                    }
                    Line {
                    SrcBlock                "c_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 9
                    }
                    Line {
                    SrcBlock                "lambda_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 10
                    }
                    Line {
                    SrcBlock                "lambda_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 11
                    }
                    Line {
                    SrcBlock                "L"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 12
                    }
                    Line {
                    SrcBlock                "zeta"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 13
                    }
                    Line {
                    SrcBlock                "mode"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 14
                    }
                    Line {
                    SrcBlock                "p_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 15
                    }
                    Line {
                    SrcBlock                "rho_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 16
                    }
                    Line {
                    SrcBlock                "T_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 17
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 18
                    }
                    Line {
                    SrcBlock                "x_CO2_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 19
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 20
                    }
                    Line {
                    SrcBlock                "p_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 21
                    }
                    Line {
                    SrcBlock                "rho_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 22
                    }
                    Line {
                    SrcBlock                "T_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 23
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 24
                    }
                    Line {
                    SrcBlock                "x_CO2_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 25
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 26
                    }
                    Line {
                    SrcBlock                "T_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 27
                    }
                    Line {
                    SrcBlock                "T_ambient"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 28
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 7
                    DstBlock                "p_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 8
                    DstBlock                "m_dot_air_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 9
                    DstBlock                "p_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 10
                    DstBlock                "m_dot_air_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "Q_dot_fluid"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 11
                    DstBlock                "Q_dot_fluid"
                    DstPort                 1
                    }
                    Line {
                    Name                    "T_dot_wall"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 12
                    DstBlock                "T_dot_wall"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator"
                  Ports                   [1, 1]
                  Position                [690, 910, 720, 940]
                  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                    "T_ambient"
                  Position                [765, 670, 890, 710]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  ShowName                off
                  Value                   "T_ambient"
                  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                    "b_isolation"
                  Position                [85, 388, 150, 422]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_isolation"
                  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                    "b_wall"
                  Position                [85, 354, 140, 386]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_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                    "c_isolation"
                  Position                [85, 528, 150, 562]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "c_isolation"
                  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                [85, 494, 140, 526]
                  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                    "lambda_isolation"
                  Position                [85, 598, 170, 632]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_isolation"
                  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                    "lambda_wall"
                  Position                [85, 563, 150, 597]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_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                    "mode"
                  Position                [85, 674, 115, 706]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "mode"
                  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_unit"
                  Position                [85, 249, 140, 281]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "n_unit"
                  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_isolation"
                  Position                [85, 458, 150, 492]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_isolation"
                  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_wall"
                  Position                [85, 424, 140, 456]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_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                    "zeta"
                  Position                [85, 639, 115, 671]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "zeta"
                  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_1"
                  Position                [238, 1055, 252, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Out_2"
                  Position                [433, 1055, 447, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "2"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [648, 1055, 662, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Bus\nCreator2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_1"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 6
                  Points                  [590, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 26
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 5
                  Points                  [570, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 25
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 4
                  Points                  [550, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 24
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 3
                  Points                  [530, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 23
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 2
                  Points                  [510, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 22
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 1
                  Points                  [490, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 21
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector4"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 6
                  Points                  [470, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 20
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 5
                  Points                  [450, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 19
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 4
                  Points                  [430, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 18
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 3
                  Points                  [410, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 17
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 2
                  Points                  [390, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 16
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 1
                  Points                  [370, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  Points                  [305, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 13
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector3"
                  DstPort                 1
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [340, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 12
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [60, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 2
                }
                Line {
                  Name                    "m_air"
                  Labels                  [0, 0]
                  SrcBlock                "Constant2"
                  SrcPort                 1
                  Points                  [0, 0; 100, 0]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 1
                  Points                  [0, 0; 0, 15]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 2
                  Points                  [0, 0; 0, 25]
                  Branch {
                    Points                  [-35, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [160, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 3
                  Points                  [0, 0; 0, 45]
                  Branch {
                    Points                  [155, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 6
                  }
                  Branch {
                    Points                  [-40, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 6
                  }
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 4
                  Points                  [0, 0; 0, 55]
                  Branch {
                    Points                  [120, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 7
                  }
                  Branch {
                    Points                  [-75, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 7
                  }
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 5
                  Points                  [0, 0; 0, 65]
                  Branch {
                    Points                  [-110, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 8
                  }
                  Branch {
                    Points                  [85, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 8
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 6
                  Points                  [0, 75; -265, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 7
                  Points                  [0, 85; -255, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 5
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 8
                  Points                  [0, 95; -170, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 9
                  Points                  [0, 105; -160, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  Points                  [325, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 14
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  Points                  [80, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  Points                  [100, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  Points                  [110, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  Points                  [140, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  Points                  [150, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  Points                  [180, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  Points                  [190, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 11
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 10
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  Points                  [-35, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 28
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 11
                  DstBlock                "Integrator"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Integrator"
                  SrcPort                 1
                  Points                  [0, 10; 45, 0; 0, -250; -45, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 27
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [40, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 1
                }
                Annotation {
                  Position                [430, 886]
                  UseDisplayTextAsClickCallback off
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "L_5"
              Position                [195, 320, 225, 350]
              Orientation             "up"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "L/5"
              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                    "Sum"
              Ports                   [2, 1]
              Position                [445, 125, 465, 145]
              ShowName                off
              IconShape               "round"
              Inputs                  "|++"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              SaturateOnIntegerOverflow off
            }
            Block {
              BlockType               SubSystem
              Name                    "Vol_2D"
              Ports                   [4, 1]
              Position                [530, 89, 610, 161]
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "Vol_2D"
                Location                [198, 172, 1194, 826]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "In_1"
                  Position                [200, 78, 230, 92]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "In_2"
                  Position                [200, 183, 230, 197]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "Q_dot"
                  Position                [200, 263, 230, 277]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "V"
                  Position                [275, 128, 305, 142]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [1085, 531, 1090, 654]
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector2"
                  Ports                   [1, 5]
                  Position                [170, 34, 175, 136]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [170, 139, 175, 241]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [430, 123, 570, 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 basic_compon"
"ents 70"
                    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                [385, 308, 575, 622]
                  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 basic_compon"
"ents 71"
                    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                   [6, 5]
                  Position                [735, 324, 900, 686]
                  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"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "p_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              2
                    Name                    "rho"
                    PropagatedSignals       "rho"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "x_H2O_gas"
                    PropagatedSignals       "x_WV"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "x_H2O_gas_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              4
                    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              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O"
                    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               Demux
                    Name                    " Demux "
                    Ports                   [1, 1]
                    Position                [270, 280, 320, 320]
                    Outputs                 "1"
                    }
                    Block {
                    BlockType               "S-Function"
                    Name                    " SFunction "
                    Tag                     "Stateflow S-Function basic_compon"
"ents 72"
                    Ports                   [6, 6]
                    Position                [180, 102, 230, 243]
                    FunctionName            "sf_sfun"
                    PortCounts              "[6 6]"
                    Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                    Name                    " Terminator "
                    Position                [460, 291, 480, 309]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 190]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "T"
                    SrcPort                 1
                    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                "V"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator1"
                  Ports                   [2, 1]
                  Position                [620, 335, 665, 370]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                  Port {
                    PortNumber              1
                    Name                    "T"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "T_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator2"
                  Ports                   [2, 1]
                  Position                [620, 395, 665, 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                    "Integrator3"
                  Ports                   [2, 1]
                  Position                [620, 455, 665, 490]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator4"
                  Ports                   [2, 1]
                  Position                [620, 515, 665, 550]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator5"
                  Ports                   [2, 1]
                  Position                [620, 575, 665, 610]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Constant
                  Name                    "T_init"
                  Position                [245, 181, 330, 209]
                  ForegroundColor         "green"
                  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               Constant
                  Name                    "m_dot_air"
                  Position                [870, 250, 900, 280]
                  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                [245, 151, 330, 179]
                  ForegroundColor         "green"
                  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                [245, 241, 330, 269]
                  ForegroundColor         "green"
                  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                [245, 211, 330, 239]
                  ForegroundColor         "green"
                  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                [245, 271, 330, 299]
                  ForegroundColor         "green"
                  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                [1125, 588, 1155, 602]
                  ForegroundColor         "blue"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 1
                  DstBlock                "Integrator1"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Q_dot"
                  SrcPort                 1
                  Points                  [-165, 0; 0, 345]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 16
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "m_dot_air"
                  SrcPort                 1
                  Points                  [75, 0; 0, 335]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 2
                  DstBlock                "Integrator2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 3
                  DstBlock                "Integrator3"
                  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 {
                  SrcBlock                "Integrator3"
                  SrcPort                 1
                  Points                  [20, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 165; -330, 0; 0, -285]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 3
                  }
                }
                Line {
                  SrcBlock                "Integrator4"
                  SrcPort                 1
                  Points                  [25, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [0, 100; -340, 0; 0, -260]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 4
                  }
                }
                Line {
                  SrcBlock                "Integrator5"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 5
                  }
                  Branch {
                    Points                  [0, 35; -350, 0; 0, -235]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 5
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 1
                  Points                  [135, 0; 0, 175]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 2
                  Points                  [120, 0; 0, 120]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 2
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 3
                  Points                  [60, 0; 0, 110]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 6
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 4
                  Points                  [45, 0; 0, 55]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 7
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 5
                  DstBlock                "Bus\nCreator1"
                  DstPort                 8
                }
                Line {
                  Name                    "m_air"
                  SrcBlock                "Integrator2"
                  SrcPort                 1
                  Points                  [15, 0]
                  Branch {
                    Points                  [0, -125; 310, 0; 0, 295]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                  Branch {
                    Labels                  [1, 1]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [0, 230; -320, 0; 0, -310]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Integrator1"
                  SrcPort                 1
                  Points                  [10, 0]
                  Branch {
                    Points                  [0, -50; 330, 0; 0, 265]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 295; -310, 0]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 1
                  }
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 1
                  }
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  DstBlock                "Out"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector5"
                  DstPort                 1
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 1
                  Points                  [-85, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 6
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 2
                  Points                  [-90, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 7
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 3
                  Points                  [-95, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 8
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 4
                  Points                  [-100, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 9
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 5
                  Points                  [-105, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 10
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 1
                  Points                  [-110, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 11
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 2
                  Points                  [-115, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 12
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 3
                  Points                  [-120, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 13
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 4
                  Points                  [-125, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 14
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 5
                  Points                  [-130, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "V"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 1
                  }
                  Branch {
                    Points                  [0, 520]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 6
                  }
                }
                Line {
                  SrcBlock                "p_init"
                  SrcPort                 1
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "T_init"
                  SrcPort                 1
                  Points                  [80, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, -80; 165, 0; 0, 245]
                    DstBlock                "Integrator1"
                    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
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 1
                  Points                  [10, 0; 0, 275]
                  DstBlock                "Integrator2"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 2
                  Points                  [15, 0; 0, 290]
                  DstBlock                "Integrator3"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 3
                  Points                  [20, 0; 0, 305]
                  DstBlock                "Integrator4"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 4
                  Points                  [25, 0; 0, 320]
                  DstBlock                "Integrator5"
                  DstPort                 2
                }
              }
            }
            Block {
              BlockType               Outport
              Name                    "p_out"
              Position                [650, 118, 680, 132]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [370, 88, 400, 102]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                "FR"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 1
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 2
              DstBlock                "Vol_2D"
              DstPort                 2
            }
            Line {
              SrcBlock                "Vol_2D"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                DstBlock                "p_out"
                DstPort                 1
              }
              Branch {
                Points                  [0, 70; -410, 0]
                DstBlock                "FR"
                DstPort                 2
              }
            }
            Line {
              SrcBlock                "L_5"
              SrcPort                 1
              Points                  [0, 0; 0, -50]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, -130]
                DstBlock                "FR"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [0, -35]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [0, -125]
              DstBlock                "Vol_2D"
              DstPort                 4
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [0, -20]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_in"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot_ext"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 3
              Points                  [15, 0; 0, 40; 90, 0]
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 3
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Duct_Heat_Transfer_Wall_2"
          Ports                   [3, 2]
          Position                [375, 240, 590, 300]
          NamePlacement           "alternate"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Duct_Heat_Transfer_Wall_2"
            Location                [-62, 327, 950, 977]
            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_in"
              Position                [175, 88, 205, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_in"
              Position                [475, 88, 505, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_ext"
              Position                [390, 128, 420, 142]
              ForegroundColor         "green"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "D_major"
              Position                [230, 320, 280, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [285, 320, 335, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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, 1]
              Position                [370, 256, 500, 304]
              ForegroundColor         "green"
              ShowName                off
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              MaskType                "Stateflow"
              MaskDescription         "Embedded MATLAB block"
              MaskDisplay             "disp('Volume');"
              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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  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 basic_componen"
"ts 58"
                  Ports                   [3, 2]
                  Position                [180, 100, 230, 180]
                  FunctionName            "sf_sfun"
                  PortCounts              "[3 2]"
                  Port {
                    PortNumber              2
                    Name                    "V"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 191, 480, 209]
                }
                Block {
                  BlockType               Outport
                  Name                    "V"
                  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                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  Name                    "V"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 2
                  DstBlock                "V"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               SubSystem
              Name                    "FR"
              Ports                   [3, 3]
              Position                [230, 86, 345, 144]
              MinAlgLoopOccurrences   on
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "FR"
                Location                [0, 82, 996, 752]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                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               Inport
                  Name                    "L"
                  Position                [30, 628, 60, 642]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [377, 1025, 498, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator2"
                  Ports                   [8, 1]
                  Position                [182, 1025, 303, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector3"
                  Ports                   [1, 6]
                  Position                [85, 37, 90, 138]
                  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                [85, 142, 90, 243]
                  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                    "Constant2"
                  Position                [100, 910, 130, 940]
                  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                    "D_major"
                  Position                [85, 284, 140, 316]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_major"
                  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                    "D_minor"
                  Position                [85, 319, 140, 351]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_minor"
                  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                   [28, 11]
                  Position                [176, 725, 734, 885]
                  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                    "x_H2O_gas"
                    PropagatedSignals       "x_H2O_gas"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              4
                    Name                    "x_CO2"
                    PropagatedSignals       "x_CO2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O_liq"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              6
                    Name                    "p"
                    PropagatedSignals       "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              7
                    Name                    "m_dot_air"
                    PropagatedSignals       "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "p"
                    PropagatedSignals       "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    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                    "n_unit"
                    Position                [20, 101, 40, 119]
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_major"
                    Position                [20, 136, 40, 154]
                    Port                    "2"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_minor"
                    Position                [20, 171, 40, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_wall"
                    Position                [20, 206, 40, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_isolation"
                    Position                [20, 246, 40, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_wall"
                    Position                [20, 281, 40, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_isolation"
                    Position                [20, 316, 40, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_wall"
                    Position                [20, 351, 40, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_isolation"
                    Position                [20, 386, 40, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_wall"
                    Position                [20, 426, 40, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_isolation"
                    Position                [20, 461, 40, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "L"
                    Position                [20, 496, 40, 514]
                    Port                    "12"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "zeta"
                    Position                [20, 531, 40, 549]
                    Port                    "13"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "mode"
                    Position                [20, 566, 40, 584]
                    Port                    "14"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_1"
                    Position                [20, 606, 40, 624]
                    Port                    "15"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_1"
                    Position                [20, 641, 40, 659]
                    Port                    "16"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_1"
                    Position                [20, 676, 40, 694]
                    Port                    "17"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_1"
                    Position                [20, 711, 40, 729]
                    Port                    "18"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_1"
                    Position                [20, 746, 40, 764]
                    Port                    "19"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_1"
                    Position                [20, 786, 40, 804]
                    Port                    "20"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_2"
                    Position                [20, 821, 40, 839]
                    Port                    "21"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_2"
                    Position                [20, 856, 40, 874]
                    Port                    "22"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_2"
                    Position                [20, 891, 40, 909]
                    Port                    "23"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_2"
                    Position                [20, 926, 40, 944]
                    Port                    "24"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_2"
                    Position                [20, 966, 40, 984]
                    Port                    "25"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_2"
                    Position                [20, 1001, 40, 1019]
                    Port                    "26"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_wall"
                    Position                [20, 1036, 40, 1054]
                    Port                    "27"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_ambient"
                    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 basic_compon"
"ents 69"
                    Ports                   [28, 12]
                    Position                [180, 120, 230, 700]
                    FunctionName            "sf_sfun"
                    PortCounts              "[28 12]"
                    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"
                    }
                    Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    }
                    Block {
                    BlockType               Terminator
                    Name                    " Terminator "
                    Position                [460, 711, 480, 729]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_1"
                    Position                [460, 281, 480, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_1"
                    Position                [460, 316, 480, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_2"
                    Position                [460, 351, 480, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_2"
                    Position                [460, 386, 480, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "Q_dot_fluid"
                    Position                [460, 426, 480, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "T_dot_wall"
                    Position                [460, 461, 480, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 585]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "n_unit"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "D_major"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 2
                    }
                    Line {
                    SrcBlock                "D_minor"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 3
                    }
                    Line {
                    SrcBlock                "b_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 4
                    }
                    Line {
                    SrcBlock                "b_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 5
                    }
                    Line {
                    SrcBlock                "rho_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    Line {
                    SrcBlock                "rho_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 7
                    }
                    Line {
                    SrcBlock                "c_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 8
                    }
                    Line {
                    SrcBlock                "c_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 9
                    }
                    Line {
                    SrcBlock                "lambda_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 10
                    }
                    Line {
                    SrcBlock                "lambda_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 11
                    }
                    Line {
                    SrcBlock                "L"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 12
                    }
                    Line {
                    SrcBlock                "zeta"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 13
                    }
                    Line {
                    SrcBlock                "mode"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 14
                    }
                    Line {
                    SrcBlock                "p_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 15
                    }
                    Line {
                    SrcBlock                "rho_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 16
                    }
                    Line {
                    SrcBlock                "T_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 17
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 18
                    }
                    Line {
                    SrcBlock                "x_CO2_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 19
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 20
                    }
                    Line {
                    SrcBlock                "p_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 21
                    }
                    Line {
                    SrcBlock                "rho_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 22
                    }
                    Line {
                    SrcBlock                "T_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 23
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 24
                    }
                    Line {
                    SrcBlock                "x_CO2_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 25
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 26
                    }
                    Line {
                    SrcBlock                "T_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 27
                    }
                    Line {
                    SrcBlock                "T_ambient"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 28
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 7
                    DstBlock                "p_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 8
                    DstBlock                "m_dot_air_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 9
                    DstBlock                "p_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 10
                    DstBlock                "m_dot_air_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "Q_dot_fluid"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 11
                    DstBlock                "Q_dot_fluid"
                    DstPort                 1
                    }
                    Line {
                    Name                    "T_dot_wall"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 12
                    DstBlock                "T_dot_wall"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator"
                  Ports                   [1, 1]
                  Position                [690, 910, 720, 940]
                  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                    "T_ambient"
                  Position                [765, 670, 890, 710]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  ShowName                off
                  Value                   "T_ambient"
                  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                    "b_isolation"
                  Position                [85, 388, 150, 422]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_isolation"
                  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                    "b_wall"
                  Position                [85, 354, 140, 386]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_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                    "c_isolation"
                  Position                [85, 528, 150, 562]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "c_isolation"
                  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                [85, 494, 140, 526]
                  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                    "lambda_isolation"
                  Position                [85, 598, 170, 632]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_isolation"
                  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                    "lambda_wall"
                  Position                [85, 563, 150, 597]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_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                    "mode"
                  Position                [85, 674, 115, 706]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "mode"
                  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_unit"
                  Position                [85, 249, 140, 281]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "n_unit"
                  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_isolation"
                  Position                [85, 458, 150, 492]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_isolation"
                  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_wall"
                  Position                [85, 424, 140, 456]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_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                    "zeta"
                  Position                [85, 639, 115, 671]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "zeta"
                  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_1"
                  Position                [238, 1055, 252, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Out_2"
                  Position                [433, 1055, 447, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "2"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [648, 1055, 662, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Bus\nCreator2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_1"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 6
                  Points                  [590, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 26
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 5
                  Points                  [570, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 25
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 4
                  Points                  [550, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 24
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 3
                  Points                  [530, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 23
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 2
                  Points                  [510, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 22
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 1
                  Points                  [490, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 21
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector4"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 6
                  Points                  [470, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 20
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 5
                  Points                  [450, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 19
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 4
                  Points                  [430, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 18
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 3
                  Points                  [410, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 17
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 2
                  Points                  [390, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 16
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 1
                  Points                  [370, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  Points                  [305, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 13
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector3"
                  DstPort                 1
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [340, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 12
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [60, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 2
                }
                Line {
                  Name                    "m_air"
                  Labels                  [0, 0]
                  SrcBlock                "Constant2"
                  SrcPort                 1
                  Points                  [0, 0; 100, 0]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 1
                  Points                  [0, 0; 0, 15]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 2
                  Points                  [0, 0; 0, 25]
                  Branch {
                    Points                  [-35, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [160, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 3
                  Points                  [0, 0; 0, 45]
                  Branch {
                    Points                  [155, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 6
                  }
                  Branch {
                    Points                  [-40, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 6
                  }
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 4
                  Points                  [0, 0; 0, 55]
                  Branch {
                    Points                  [120, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 7
                  }
                  Branch {
                    Points                  [-75, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 7
                  }
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 5
                  Points                  [0, 0; 0, 65]
                  Branch {
                    Points                  [-110, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 8
                  }
                  Branch {
                    Points                  [85, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 8
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 6
                  Points                  [0, 75; -265, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 7
                  Points                  [0, 85; -255, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 5
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 8
                  Points                  [0, 95; -170, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 9
                  Points                  [0, 105; -160, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  Points                  [325, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 14
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  Points                  [80, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  Points                  [100, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  Points                  [110, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  Points                  [140, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  Points                  [150, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  Points                  [180, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  Points                  [190, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 11
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 10
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  Points                  [-35, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 28
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 11
                  DstBlock                "Integrator"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Integrator"
                  SrcPort                 1
                  Points                  [0, 10; 45, 0; 0, -250; -45, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 27
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [40, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 1
                }
                Annotation {
                  Position                [430, 886]
                  UseDisplayTextAsClickCallback off
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "L_5"
              Position                [195, 320, 225, 350]
              Orientation             "up"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "L/5"
              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                    "Sum"
              Ports                   [2, 1]
              Position                [445, 125, 465, 145]
              ShowName                off
              IconShape               "round"
              Inputs                  "|++"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              SaturateOnIntegerOverflow off
            }
            Block {
              BlockType               SubSystem
              Name                    "Vol_2D"
              Ports                   [4, 1]
              Position                [530, 89, 610, 161]
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "Vol_2D"
                Location                [198, 172, 1194, 826]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "In_1"
                  Position                [200, 78, 230, 92]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "In_2"
                  Position                [200, 183, 230, 197]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "Q_dot"
                  Position                [200, 263, 230, 277]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "V"
                  Position                [275, 128, 305, 142]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [1085, 531, 1090, 654]
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector2"
                  Ports                   [1, 5]
                  Position                [170, 34, 175, 136]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [170, 139, 175, 241]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [430, 123, 570, 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 basic_compon"
"ents 73"
                    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                [385, 308, 575, 622]
                  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 basic_compon"
"ents 74"
                    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                   [6, 5]
                  Position                [735, 324, 900, 686]
                  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"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "p_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              2
                    Name                    "rho"
                    PropagatedSignals       "rho"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "x_H2O_gas"
                    PropagatedSignals       "x_WV"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "x_H2O_gas_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              4
                    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              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O"
                    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               Demux
                    Name                    " Demux "
                    Ports                   [1, 1]
                    Position                [270, 280, 320, 320]
                    Outputs                 "1"
                    }
                    Block {
                    BlockType               "S-Function"
                    Name                    " SFunction "
                    Tag                     "Stateflow S-Function basic_compon"
"ents 75"
                    Ports                   [6, 6]
                    Position                [180, 102, 230, 243]
                    FunctionName            "sf_sfun"
                    PortCounts              "[6 6]"
                    Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                    Name                    " Terminator "
                    Position                [460, 291, 480, 309]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 190]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "T"
                    SrcPort                 1
                    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                "V"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator1"
                  Ports                   [2, 1]
                  Position                [620, 335, 665, 370]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                  Port {
                    PortNumber              1
                    Name                    "T"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "T_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator2"
                  Ports                   [2, 1]
                  Position                [620, 395, 665, 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                    "Integrator3"
                  Ports                   [2, 1]
                  Position                [620, 455, 665, 490]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator4"
                  Ports                   [2, 1]
                  Position                [620, 515, 665, 550]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator5"
                  Ports                   [2, 1]
                  Position                [620, 575, 665, 610]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Constant
                  Name                    "T_init"
                  Position                [245, 181, 330, 209]
                  ForegroundColor         "green"
                  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               Constant
                  Name                    "m_dot_air"
                  Position                [870, 250, 900, 280]
                  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                [245, 151, 330, 179]
                  ForegroundColor         "green"
                  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                [245, 241, 330, 269]
                  ForegroundColor         "green"
                  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                [245, 211, 330, 239]
                  ForegroundColor         "green"
                  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                [245, 271, 330, 299]
                  ForegroundColor         "green"
                  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                [1125, 588, 1155, 602]
                  ForegroundColor         "blue"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 1
                  DstBlock                "Integrator1"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Q_dot"
                  SrcPort                 1
                  Points                  [-165, 0; 0, 345]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 16
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "m_dot_air"
                  SrcPort                 1
                  Points                  [75, 0; 0, 335]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 2
                  DstBlock                "Integrator2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 3
                  DstBlock                "Integrator3"
                  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 {
                  SrcBlock                "Integrator3"
                  SrcPort                 1
                  Points                  [20, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 165; -330, 0; 0, -285]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 3
                  }
                }
                Line {
                  SrcBlock                "Integrator4"
                  SrcPort                 1
                  Points                  [25, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [0, 100; -340, 0; 0, -260]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 4
                  }
                }
                Line {
                  SrcBlock                "Integrator5"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 5
                  }
                  Branch {
                    Points                  [0, 35; -350, 0; 0, -235]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 5
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 1
                  Points                  [135, 0; 0, 175]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 2
                  Points                  [120, 0; 0, 120]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 2
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 3
                  Points                  [60, 0; 0, 110]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 6
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 4
                  Points                  [45, 0; 0, 55]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 7
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 5
                  DstBlock                "Bus\nCreator1"
                  DstPort                 8
                }
                Line {
                  Name                    "m_air"
                  SrcBlock                "Integrator2"
                  SrcPort                 1
                  Points                  [15, 0]
                  Branch {
                    Points                  [0, -125; 310, 0; 0, 295]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                  Branch {
                    Labels                  [1, 1]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [0, 230; -320, 0; 0, -310]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Integrator1"
                  SrcPort                 1
                  Points                  [10, 0]
                  Branch {
                    Points                  [0, -50; 330, 0; 0, 265]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 295; -310, 0]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 1
                  }
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 1
                  }
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  DstBlock                "Out"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector5"
                  DstPort                 1
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 1
                  Points                  [-85, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 6
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 2
                  Points                  [-90, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 7
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 3
                  Points                  [-95, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 8
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 4
                  Points                  [-100, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 9
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 5
                  Points                  [-105, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 10
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 1
                  Points                  [-110, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 11
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 2
                  Points                  [-115, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 12
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 3
                  Points                  [-120, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 13
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 4
                  Points                  [-125, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 14
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 5
                  Points                  [-130, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "V"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 1
                  }
                  Branch {
                    Points                  [0, 520]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 6
                  }
                }
                Line {
                  SrcBlock                "p_init"
                  SrcPort                 1
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "T_init"
                  SrcPort                 1
                  Points                  [80, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, -80; 165, 0; 0, 245]
                    DstBlock                "Integrator1"
                    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
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 1
                  Points                  [10, 0; 0, 275]
                  DstBlock                "Integrator2"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 2
                  Points                  [15, 0; 0, 290]
                  DstBlock                "Integrator3"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 3
                  Points                  [20, 0; 0, 305]
                  DstBlock                "Integrator4"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 4
                  Points                  [25, 0; 0, 320]
                  DstBlock                "Integrator5"
                  DstPort                 2
                }
              }
            }
            Block {
              BlockType               Outport
              Name                    "p_out"
              Position                [650, 118, 680, 132]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [370, 88, 400, 102]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                "FR"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 1
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 2
              DstBlock                "Vol_2D"
              DstPort                 2
            }
            Line {
              SrcBlock                "Vol_2D"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                DstBlock                "p_out"
                DstPort                 1
              }
              Branch {
                Points                  [0, 70; -410, 0]
                DstBlock                "FR"
                DstPort                 2
              }
            }
            Line {
              SrcBlock                "L_5"
              SrcPort                 1
              Points                  [0, 0; 0, -50]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, -130]
                DstBlock                "FR"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [0, -35]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [0, -125]
              DstBlock                "Vol_2D"
              DstPort                 4
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [0, -20]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_in"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot_ext"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 3
              Points                  [15, 0; 0, 40; 90, 0]
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 3
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Duct_Heat_Transfer_Wall_3"
          Ports                   [3, 2]
          Position                [640, 240, 855, 300]
          NamePlacement           "alternate"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Duct_Heat_Transfer_Wall_3"
            Location                [-62, 327, 950, 977]
            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_in"
              Position                [175, 88, 205, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_in"
              Position                [475, 88, 505, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_ext"
              Position                [390, 128, 420, 142]
              ForegroundColor         "green"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "D_major"
              Position                [230, 320, 280, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [285, 320, 335, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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, 1]
              Position                [370, 256, 500, 304]
              ForegroundColor         "green"
              ShowName                off
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              MaskType                "Stateflow"
              MaskDescription         "Embedded MATLAB block"
              MaskDisplay             "disp('Volume');"
              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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  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 basic_componen"
"ts 80"
                  Ports                   [3, 2]
                  Position                [180, 100, 230, 180]
                  FunctionName            "sf_sfun"
                  PortCounts              "[3 2]"
                  Port {
                    PortNumber              2
                    Name                    "V"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 191, 480, 209]
                }
                Block {
                  BlockType               Outport
                  Name                    "V"
                  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                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  Name                    "V"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 2
                  DstBlock                "V"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               SubSystem
              Name                    "FR"
              Ports                   [3, 3]
              Position                [230, 86, 345, 144]
              MinAlgLoopOccurrences   on
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "FR"
                Location                [0, 82, 996, 752]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                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               Inport
                  Name                    "L"
                  Position                [30, 628, 60, 642]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [377, 1025, 498, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator2"
                  Ports                   [8, 1]
                  Position                [182, 1025, 303, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector3"
                  Ports                   [1, 6]
                  Position                [85, 37, 90, 138]
                  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                [85, 142, 90, 243]
                  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                    "Constant2"
                  Position                [100, 910, 130, 940]
                  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                    "D_major"
                  Position                [85, 284, 140, 316]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_major"
                  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                    "D_minor"
                  Position                [85, 319, 140, 351]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_minor"
                  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                   [28, 11]
                  Position                [176, 725, 734, 885]
                  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                    "x_H2O_gas"
                    PropagatedSignals       "x_H2O_gas"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              4
                    Name                    "x_CO2"
                    PropagatedSignals       "x_CO2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O_liq"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              6
                    Name                    "p"
                    PropagatedSignals       "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              7
                    Name                    "m_dot_air"
                    PropagatedSignals       "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "p"
                    PropagatedSignals       "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    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                    "n_unit"
                    Position                [20, 101, 40, 119]
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_major"
                    Position                [20, 136, 40, 154]
                    Port                    "2"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_minor"
                    Position                [20, 171, 40, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_wall"
                    Position                [20, 206, 40, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_isolation"
                    Position                [20, 246, 40, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_wall"
                    Position                [20, 281, 40, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_isolation"
                    Position                [20, 316, 40, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_wall"
                    Position                [20, 351, 40, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_isolation"
                    Position                [20, 386, 40, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_wall"
                    Position                [20, 426, 40, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_isolation"
                    Position                [20, 461, 40, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "L"
                    Position                [20, 496, 40, 514]
                    Port                    "12"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "zeta"
                    Position                [20, 531, 40, 549]
                    Port                    "13"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "mode"
                    Position                [20, 566, 40, 584]
                    Port                    "14"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_1"
                    Position                [20, 606, 40, 624]
                    Port                    "15"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_1"
                    Position                [20, 641, 40, 659]
                    Port                    "16"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_1"
                    Position                [20, 676, 40, 694]
                    Port                    "17"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_1"
                    Position                [20, 711, 40, 729]
                    Port                    "18"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_1"
                    Position                [20, 746, 40, 764]
                    Port                    "19"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_1"
                    Position                [20, 786, 40, 804]
                    Port                    "20"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_2"
                    Position                [20, 821, 40, 839]
                    Port                    "21"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_2"
                    Position                [20, 856, 40, 874]
                    Port                    "22"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_2"
                    Position                [20, 891, 40, 909]
                    Port                    "23"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_2"
                    Position                [20, 926, 40, 944]
                    Port                    "24"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_2"
                    Position                [20, 966, 40, 984]
                    Port                    "25"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_2"
                    Position                [20, 1001, 40, 1019]
                    Port                    "26"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_wall"
                    Position                [20, 1036, 40, 1054]
                    Port                    "27"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_ambient"
                    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 basic_compon"
"ents 81"
                    Ports                   [28, 12]
                    Position                [180, 120, 230, 700]
                    FunctionName            "sf_sfun"
                    PortCounts              "[28 12]"
                    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"
                    }
                    Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    }
                    Block {
                    BlockType               Terminator
                    Name                    " Terminator "
                    Position                [460, 711, 480, 729]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_1"
                    Position                [460, 281, 480, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_1"
                    Position                [460, 316, 480, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_2"
                    Position                [460, 351, 480, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_2"
                    Position                [460, 386, 480, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "Q_dot_fluid"
                    Position                [460, 426, 480, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "T_dot_wall"
                    Position                [460, 461, 480, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 585]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "n_unit"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "D_major"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 2
                    }
                    Line {
                    SrcBlock                "D_minor"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 3
                    }
                    Line {
                    SrcBlock                "b_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 4
                    }
                    Line {
                    SrcBlock                "b_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 5
                    }
                    Line {
                    SrcBlock                "rho_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    Line {
                    SrcBlock                "rho_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 7
                    }
                    Line {
                    SrcBlock                "c_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 8
                    }
                    Line {
                    SrcBlock                "c_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 9
                    }
                    Line {
                    SrcBlock                "lambda_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 10
                    }
                    Line {
                    SrcBlock                "lambda_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 11
                    }
                    Line {
                    SrcBlock                "L"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 12
                    }
                    Line {
                    SrcBlock                "zeta"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 13
                    }
                    Line {
                    SrcBlock                "mode"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 14
                    }
                    Line {
                    SrcBlock                "p_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 15
                    }
                    Line {
                    SrcBlock                "rho_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 16
                    }
                    Line {
                    SrcBlock                "T_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 17
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 18
                    }
                    Line {
                    SrcBlock                "x_CO2_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 19
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 20
                    }
                    Line {
                    SrcBlock                "p_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 21
                    }
                    Line {
                    SrcBlock                "rho_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 22
                    }
                    Line {
                    SrcBlock                "T_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 23
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 24
                    }
                    Line {
                    SrcBlock                "x_CO2_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 25
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 26
                    }
                    Line {
                    SrcBlock                "T_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 27
                    }
                    Line {
                    SrcBlock                "T_ambient"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 28
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 7
                    DstBlock                "p_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 8
                    DstBlock                "m_dot_air_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 9
                    DstBlock                "p_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 10
                    DstBlock                "m_dot_air_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "Q_dot_fluid"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 11
                    DstBlock                "Q_dot_fluid"
                    DstPort                 1
                    }
                    Line {
                    Name                    "T_dot_wall"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 12
                    DstBlock                "T_dot_wall"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator"
                  Ports                   [1, 1]
                  Position                [690, 910, 720, 940]
                  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                    "T_ambient"
                  Position                [765, 670, 890, 710]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  ShowName                off
                  Value                   "T_ambient"
                  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                    "b_isolation"
                  Position                [85, 388, 150, 422]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_isolation"
                  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                    "b_wall"
                  Position                [85, 354, 140, 386]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_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                    "c_isolation"
                  Position                [85, 528, 150, 562]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "c_isolation"
                  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                [85, 494, 140, 526]
                  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                    "lambda_isolation"
                  Position                [85, 598, 170, 632]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_isolation"
                  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                    "lambda_wall"
                  Position                [85, 563, 150, 597]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_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                    "mode"
                  Position                [85, 674, 115, 706]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "mode"
                  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_unit"
                  Position                [85, 249, 140, 281]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "n_unit"
                  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_isolation"
                  Position                [85, 458, 150, 492]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_isolation"
                  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_wall"
                  Position                [85, 424, 140, 456]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_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                    "zeta"
                  Position                [85, 639, 115, 671]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "zeta"
                  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_1"
                  Position                [238, 1055, 252, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Out_2"
                  Position                [433, 1055, 447, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "2"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [648, 1055, 662, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Bus\nCreator2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_1"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 6
                  Points                  [590, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 26
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 5
                  Points                  [570, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 25
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 4
                  Points                  [550, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 24
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 3
                  Points                  [530, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 23
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 2
                  Points                  [510, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 22
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 1
                  Points                  [490, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 21
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector4"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 6
                  Points                  [470, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 20
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 5
                  Points                  [450, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 19
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 4
                  Points                  [430, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 18
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 3
                  Points                  [410, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 17
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 2
                  Points                  [390, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 16
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 1
                  Points                  [370, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  Points                  [305, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 13
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector3"
                  DstPort                 1
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [340, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 12
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [60, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 2
                }
                Line {
                  Name                    "m_air"
                  Labels                  [0, 0]
                  SrcBlock                "Constant2"
                  SrcPort                 1
                  Points                  [0, 0; 100, 0]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 1
                  Points                  [0, 0; 0, 15]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 2
                  Points                  [0, 0; 0, 25]
                  Branch {
                    Points                  [-35, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [160, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 3
                  Points                  [0, 0; 0, 45]
                  Branch {
                    Points                  [155, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 6
                  }
                  Branch {
                    Points                  [-40, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 6
                  }
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 4
                  Points                  [0, 0; 0, 55]
                  Branch {
                    Points                  [120, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 7
                  }
                  Branch {
                    Points                  [-75, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 7
                  }
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 5
                  Points                  [0, 0; 0, 65]
                  Branch {
                    Points                  [-110, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 8
                  }
                  Branch {
                    Points                  [85, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 8
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 6
                  Points                  [0, 75; -265, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 7
                  Points                  [0, 85; -255, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 5
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 8
                  Points                  [0, 95; -170, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 9
                  Points                  [0, 105; -160, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  Points                  [325, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 14
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  Points                  [80, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  Points                  [100, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  Points                  [110, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  Points                  [140, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  Points                  [150, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  Points                  [180, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  Points                  [190, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 11
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 10
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  Points                  [-35, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 28
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 11
                  DstBlock                "Integrator"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Integrator"
                  SrcPort                 1
                  Points                  [0, 10; 45, 0; 0, -250; -45, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 27
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [40, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 1
                }
                Annotation {
                  Position                [430, 886]
                  UseDisplayTextAsClickCallback off
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "L_5"
              Position                [195, 320, 225, 350]
              Orientation             "up"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "L/5"
              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                    "Sum"
              Ports                   [2, 1]
              Position                [445, 125, 465, 145]
              ShowName                off
              IconShape               "round"
              Inputs                  "|++"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              SaturateOnIntegerOverflow off
            }
            Block {
              BlockType               SubSystem
              Name                    "Vol_2D"
              Ports                   [4, 1]
              Position                [530, 89, 610, 161]
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "Vol_2D"
                Location                [198, 172, 1194, 826]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "In_1"
                  Position                [200, 78, 230, 92]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "In_2"
                  Position                [200, 183, 230, 197]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "Q_dot"
                  Position                [200, 263, 230, 277]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "V"
                  Position                [275, 128, 305, 142]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [1085, 531, 1090, 654]
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector2"
                  Ports                   [1, 5]
                  Position                [170, 34, 175, 136]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [170, 139, 175, 241]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [430, 123, 570, 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 basic_compon"
"ents 82"
                    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                [385, 308, 575, 622]
                  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 basic_compon"
"ents 83"
                    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                   [6, 5]
                  Position                [735, 324, 900, 686]
                  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"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "p_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              2
                    Name                    "rho"
                    PropagatedSignals       "rho"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "x_H2O_gas"
                    PropagatedSignals       "x_WV"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "x_H2O_gas_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              4
                    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              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O"
                    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               Demux
                    Name                    " Demux "
                    Ports                   [1, 1]
                    Position                [270, 280, 320, 320]
                    Outputs                 "1"
                    }
                    Block {
                    BlockType               "S-Function"
                    Name                    " SFunction "
                    Tag                     "Stateflow S-Function basic_compon"
"ents 84"
                    Ports                   [6, 6]
                    Position                [180, 102, 230, 243]
                    FunctionName            "sf_sfun"
                    PortCounts              "[6 6]"
                    Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                    Name                    " Terminator "
                    Position                [460, 291, 480, 309]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 190]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "T"
                    SrcPort                 1
                    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                "V"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator1"
                  Ports                   [2, 1]
                  Position                [620, 335, 665, 370]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                  Port {
                    PortNumber              1
                    Name                    "T"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "T_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator2"
                  Ports                   [2, 1]
                  Position                [620, 395, 665, 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                    "Integrator3"
                  Ports                   [2, 1]
                  Position                [620, 455, 665, 490]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator4"
                  Ports                   [2, 1]
                  Position                [620, 515, 665, 550]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator5"
                  Ports                   [2, 1]
                  Position                [620, 575, 665, 610]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Constant
                  Name                    "T_init"
                  Position                [245, 181, 330, 209]
                  ForegroundColor         "green"
                  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               Constant
                  Name                    "m_dot_air"
                  Position                [870, 250, 900, 280]
                  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                [245, 151, 330, 179]
                  ForegroundColor         "green"
                  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                [245, 241, 330, 269]
                  ForegroundColor         "green"
                  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                [245, 211, 330, 239]
                  ForegroundColor         "green"
                  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                [245, 271, 330, 299]
                  ForegroundColor         "green"
                  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                [1125, 588, 1155, 602]
                  ForegroundColor         "blue"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 1
                  DstBlock                "Integrator1"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Q_dot"
                  SrcPort                 1
                  Points                  [-165, 0; 0, 345]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 16
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "m_dot_air"
                  SrcPort                 1
                  Points                  [75, 0; 0, 335]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 2
                  DstBlock                "Integrator2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 3
                  DstBlock                "Integrator3"
                  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 {
                  SrcBlock                "Integrator3"
                  SrcPort                 1
                  Points                  [20, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 165; -330, 0; 0, -285]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 3
                  }
                }
                Line {
                  SrcBlock                "Integrator4"
                  SrcPort                 1
                  Points                  [25, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [0, 100; -340, 0; 0, -260]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 4
                  }
                }
                Line {
                  SrcBlock                "Integrator5"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 5
                  }
                  Branch {
                    Points                  [0, 35; -350, 0; 0, -235]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 5
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 1
                  Points                  [135, 0; 0, 175]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 2
                  Points                  [120, 0; 0, 120]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 2
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 3
                  Points                  [60, 0; 0, 110]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 6
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 4
                  Points                  [45, 0; 0, 55]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 7
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 5
                  DstBlock                "Bus\nCreator1"
                  DstPort                 8
                }
                Line {
                  Name                    "m_air"
                  SrcBlock                "Integrator2"
                  SrcPort                 1
                  Points                  [15, 0]
                  Branch {
                    Points                  [0, -125; 310, 0; 0, 295]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                  Branch {
                    Labels                  [1, 1]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [0, 230; -320, 0; 0, -310]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Integrator1"
                  SrcPort                 1
                  Points                  [10, 0]
                  Branch {
                    Points                  [0, -50; 330, 0; 0, 265]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 295; -310, 0]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 1
                  }
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 1
                  }
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  DstBlock                "Out"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector5"
                  DstPort                 1
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 1
                  Points                  [-85, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 6
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 2
                  Points                  [-90, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 7
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 3
                  Points                  [-95, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 8
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 4
                  Points                  [-100, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 9
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 5
                  Points                  [-105, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 10
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 1
                  Points                  [-110, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 11
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 2
                  Points                  [-115, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 12
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 3
                  Points                  [-120, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 13
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 4
                  Points                  [-125, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 14
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 5
                  Points                  [-130, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "V"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 1
                  }
                  Branch {
                    Points                  [0, 520]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 6
                  }
                }
                Line {
                  SrcBlock                "p_init"
                  SrcPort                 1
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "T_init"
                  SrcPort                 1
                  Points                  [80, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, -80; 165, 0; 0, 245]
                    DstBlock                "Integrator1"
                    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
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 1
                  Points                  [10, 0; 0, 275]
                  DstBlock                "Integrator2"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 2
                  Points                  [15, 0; 0, 290]
                  DstBlock                "Integrator3"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 3
                  Points                  [20, 0; 0, 305]
                  DstBlock                "Integrator4"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 4
                  Points                  [25, 0; 0, 320]
                  DstBlock                "Integrator5"
                  DstPort                 2
                }
              }
            }
            Block {
              BlockType               Outport
              Name                    "p_out"
              Position                [650, 118, 680, 132]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [370, 88, 400, 102]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                "FR"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 1
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 2
              DstBlock                "Vol_2D"
              DstPort                 2
            }
            Line {
              SrcBlock                "Vol_2D"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                DstBlock                "p_out"
                DstPort                 1
              }
              Branch {
                Points                  [0, 70; -410, 0]
                DstBlock                "FR"
                DstPort                 2
              }
            }
            Line {
              SrcBlock                "L_5"
              SrcPort                 1
              Points                  [0, 0; 0, -50]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, -130]
                DstBlock                "FR"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [0, -35]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [0, -125]
              DstBlock                "Vol_2D"
              DstPort                 4
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [0, -20]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_in"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot_ext"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 3
              Points                  [15, 0; 0, 40; 90, 0]
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 3
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Duct_Heat_Transfer_Wall_4"
          Ports                   [3, 2]
          Position                [910, 240, 1125, 300]
          NamePlacement           "alternate"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Duct_Heat_Transfer_Wall_4"
            Location                [-62, 327, 950, 977]
            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_in"
              Position                [175, 88, 205, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_in"
              Position                [475, 88, 505, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_ext"
              Position                [390, 128, 420, 142]
              ForegroundColor         "green"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "D_major"
              Position                [230, 320, 280, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [285, 320, 335, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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, 1]
              Position                [370, 256, 500, 304]
              ForegroundColor         "green"
              ShowName                off
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              MaskType                "Stateflow"
              MaskDescription         "Embedded MATLAB block"
              MaskDisplay             "disp('Volume');"
              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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  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 basic_componen"
"ts 85"
                  Ports                   [3, 2]
                  Position                [180, 100, 230, 180]
                  FunctionName            "sf_sfun"
                  PortCounts              "[3 2]"
                  Port {
                    PortNumber              2
                    Name                    "V"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 191, 480, 209]
                }
                Block {
                  BlockType               Outport
                  Name                    "V"
                  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                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  Name                    "V"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 2
                  DstBlock                "V"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               SubSystem
              Name                    "FR"
              Ports                   [3, 3]
              Position                [230, 86, 345, 144]
              MinAlgLoopOccurrences   on
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "FR"
                Location                [0, 82, 996, 752]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                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               Inport
                  Name                    "L"
                  Position                [30, 628, 60, 642]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [377, 1025, 498, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator2"
                  Ports                   [8, 1]
                  Position                [182, 1025, 303, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector3"
                  Ports                   [1, 6]
                  Position                [85, 37, 90, 138]
                  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                [85, 142, 90, 243]
                  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                    "Constant2"
                  Position                [100, 910, 130, 940]
                  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                    "D_major"
                  Position                [85, 284, 140, 316]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_major"
                  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                    "D_minor"
                  Position                [85, 319, 140, 351]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_minor"
                  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                   [28, 11]
                  Position                [176, 725, 734, 885]
                  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                    "x_H2O_gas"
                    PropagatedSignals       "x_H2O_gas"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              4
                    Name                    "x_CO2"
                    PropagatedSignals       "x_CO2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O_liq"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              6
                    Name                    "p"
                    PropagatedSignals       "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              7
                    Name                    "m_dot_air"
                    PropagatedSignals       "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "p"
                    PropagatedSignals       "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    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                    "n_unit"
                    Position                [20, 101, 40, 119]
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_major"
                    Position                [20, 136, 40, 154]
                    Port                    "2"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_minor"
                    Position                [20, 171, 40, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_wall"
                    Position                [20, 206, 40, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_isolation"
                    Position                [20, 246, 40, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_wall"
                    Position                [20, 281, 40, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_isolation"
                    Position                [20, 316, 40, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_wall"
                    Position                [20, 351, 40, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_isolation"
                    Position                [20, 386, 40, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_wall"
                    Position                [20, 426, 40, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_isolation"
                    Position                [20, 461, 40, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "L"
                    Position                [20, 496, 40, 514]
                    Port                    "12"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "zeta"
                    Position                [20, 531, 40, 549]
                    Port                    "13"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "mode"
                    Position                [20, 566, 40, 584]
                    Port                    "14"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_1"
                    Position                [20, 606, 40, 624]
                    Port                    "15"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_1"
                    Position                [20, 641, 40, 659]
                    Port                    "16"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_1"
                    Position                [20, 676, 40, 694]
                    Port                    "17"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_1"
                    Position                [20, 711, 40, 729]
                    Port                    "18"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_1"
                    Position                [20, 746, 40, 764]
                    Port                    "19"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_1"
                    Position                [20, 786, 40, 804]
                    Port                    "20"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_2"
                    Position                [20, 821, 40, 839]
                    Port                    "21"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_2"
                    Position                [20, 856, 40, 874]
                    Port                    "22"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_2"
                    Position                [20, 891, 40, 909]
                    Port                    "23"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_2"
                    Position                [20, 926, 40, 944]
                    Port                    "24"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_2"
                    Position                [20, 966, 40, 984]
                    Port                    "25"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_2"
                    Position                [20, 1001, 40, 1019]
                    Port                    "26"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_wall"
                    Position                [20, 1036, 40, 1054]
                    Port                    "27"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_ambient"
                    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 basic_compon"
"ents 86"
                    Ports                   [28, 12]
                    Position                [180, 120, 230, 700]
                    FunctionName            "sf_sfun"
                    PortCounts              "[28 12]"
                    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"
                    }
                    Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    }
                    Block {
                    BlockType               Terminator
                    Name                    " Terminator "
                    Position                [460, 711, 480, 729]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_1"
                    Position                [460, 281, 480, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_1"
                    Position                [460, 316, 480, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_2"
                    Position                [460, 351, 480, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_2"
                    Position                [460, 386, 480, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "Q_dot_fluid"
                    Position                [460, 426, 480, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "T_dot_wall"
                    Position                [460, 461, 480, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 585]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "n_unit"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "D_major"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 2
                    }
                    Line {
                    SrcBlock                "D_minor"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 3
                    }
                    Line {
                    SrcBlock                "b_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 4
                    }
                    Line {
                    SrcBlock                "b_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 5
                    }
                    Line {
                    SrcBlock                "rho_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    Line {
                    SrcBlock                "rho_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 7
                    }
                    Line {
                    SrcBlock                "c_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 8
                    }
                    Line {
                    SrcBlock                "c_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 9
                    }
                    Line {
                    SrcBlock                "lambda_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 10
                    }
                    Line {
                    SrcBlock                "lambda_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 11
                    }
                    Line {
                    SrcBlock                "L"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 12
                    }
                    Line {
                    SrcBlock                "zeta"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 13
                    }
                    Line {
                    SrcBlock                "mode"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 14
                    }
                    Line {
                    SrcBlock                "p_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 15
                    }
                    Line {
                    SrcBlock                "rho_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 16
                    }
                    Line {
                    SrcBlock                "T_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 17
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 18
                    }
                    Line {
                    SrcBlock                "x_CO2_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 19
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 20
                    }
                    Line {
                    SrcBlock                "p_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 21
                    }
                    Line {
                    SrcBlock                "rho_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 22
                    }
                    Line {
                    SrcBlock                "T_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 23
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 24
                    }
                    Line {
                    SrcBlock                "x_CO2_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 25
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 26
                    }
                    Line {
                    SrcBlock                "T_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 27
                    }
                    Line {
                    SrcBlock                "T_ambient"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 28
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 7
                    DstBlock                "p_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 8
                    DstBlock                "m_dot_air_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 9
                    DstBlock                "p_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 10
                    DstBlock                "m_dot_air_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "Q_dot_fluid"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 11
                    DstBlock                "Q_dot_fluid"
                    DstPort                 1
                    }
                    Line {
                    Name                    "T_dot_wall"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 12
                    DstBlock                "T_dot_wall"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator"
                  Ports                   [1, 1]
                  Position                [690, 910, 720, 940]
                  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                    "T_ambient"
                  Position                [765, 670, 890, 710]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  ShowName                off
                  Value                   "T_ambient"
                  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                    "b_isolation"
                  Position                [85, 388, 150, 422]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_isolation"
                  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                    "b_wall"
                  Position                [85, 354, 140, 386]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_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                    "c_isolation"
                  Position                [85, 528, 150, 562]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "c_isolation"
                  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                [85, 494, 140, 526]
                  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                    "lambda_isolation"
                  Position                [85, 598, 170, 632]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_isolation"
                  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                    "lambda_wall"
                  Position                [85, 563, 150, 597]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_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                    "mode"
                  Position                [85, 674, 115, 706]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "mode"
                  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_unit"
                  Position                [85, 249, 140, 281]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "n_unit"
                  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_isolation"
                  Position                [85, 458, 150, 492]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_isolation"
                  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_wall"
                  Position                [85, 424, 140, 456]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_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                    "zeta"
                  Position                [85, 639, 115, 671]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "zeta"
                  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_1"
                  Position                [238, 1055, 252, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Out_2"
                  Position                [433, 1055, 447, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "2"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [648, 1055, 662, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Bus\nCreator2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_1"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 6
                  Points                  [590, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 26
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 5
                  Points                  [570, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 25
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 4
                  Points                  [550, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 24
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 3
                  Points                  [530, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 23
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 2
                  Points                  [510, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 22
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 1
                  Points                  [490, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 21
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector4"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 6
                  Points                  [470, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 20
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 5
                  Points                  [450, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 19
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 4
                  Points                  [430, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 18
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 3
                  Points                  [410, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 17
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 2
                  Points                  [390, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 16
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 1
                  Points                  [370, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  Points                  [305, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 13
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector3"
                  DstPort                 1
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [340, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 12
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [60, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 2
                }
                Line {
                  Name                    "m_air"
                  Labels                  [0, 0]
                  SrcBlock                "Constant2"
                  SrcPort                 1
                  Points                  [0, 0; 100, 0]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 1
                  Points                  [0, 0; 0, 15]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 2
                  Points                  [0, 0; 0, 25]
                  Branch {
                    Points                  [-35, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [160, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 3
                  Points                  [0, 0; 0, 45]
                  Branch {
                    Points                  [155, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 6
                  }
                  Branch {
                    Points                  [-40, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 6
                  }
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 4
                  Points                  [0, 0; 0, 55]
                  Branch {
                    Points                  [120, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 7
                  }
                  Branch {
                    Points                  [-75, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 7
                  }
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 5
                  Points                  [0, 0; 0, 65]
                  Branch {
                    Points                  [-110, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 8
                  }
                  Branch {
                    Points                  [85, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 8
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 6
                  Points                  [0, 75; -265, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 7
                  Points                  [0, 85; -255, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 5
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 8
                  Points                  [0, 95; -170, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 9
                  Points                  [0, 105; -160, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  Points                  [325, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 14
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  Points                  [80, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  Points                  [100, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  Points                  [110, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  Points                  [140, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  Points                  [150, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  Points                  [180, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  Points                  [190, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 11
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 10
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  Points                  [-35, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 28
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 11
                  DstBlock                "Integrator"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Integrator"
                  SrcPort                 1
                  Points                  [0, 10; 45, 0; 0, -250; -45, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 27
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [40, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 1
                }
                Annotation {
                  Position                [430, 886]
                  UseDisplayTextAsClickCallback off
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "L_5"
              Position                [195, 320, 225, 350]
              Orientation             "up"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "L/5"
              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                    "Sum"
              Ports                   [2, 1]
              Position                [445, 125, 465, 145]
              ShowName                off
              IconShape               "round"
              Inputs                  "|++"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              SaturateOnIntegerOverflow off
            }
            Block {
              BlockType               SubSystem
              Name                    "Vol_2D"
              Ports                   [4, 1]
              Position                [530, 89, 610, 161]
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "Vol_2D"
                Location                [198, 172, 1194, 826]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "In_1"
                  Position                [200, 78, 230, 92]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "In_2"
                  Position                [200, 183, 230, 197]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "Q_dot"
                  Position                [200, 263, 230, 277]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "V"
                  Position                [275, 128, 305, 142]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [1085, 531, 1090, 654]
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector2"
                  Ports                   [1, 5]
                  Position                [170, 34, 175, 136]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [170, 139, 175, 241]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [430, 123, 570, 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 basic_compon"
"ents 87"
                    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                [385, 308, 575, 622]
                  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 basic_compon"
"ents 88"
                    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                   [6, 5]
                  Position                [735, 324, 900, 686]
                  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"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "p_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              2
                    Name                    "rho"
                    PropagatedSignals       "rho"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "x_H2O_gas"
                    PropagatedSignals       "x_WV"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "x_H2O_gas_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              4
                    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              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O"
                    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               Demux
                    Name                    " Demux "
                    Ports                   [1, 1]
                    Position                [270, 280, 320, 320]
                    Outputs                 "1"
                    }
                    Block {
                    BlockType               "S-Function"
                    Name                    " SFunction "
                    Tag                     "Stateflow S-Function basic_compon"
"ents 89"
                    Ports                   [6, 6]
                    Position                [180, 102, 230, 243]
                    FunctionName            "sf_sfun"
                    PortCounts              "[6 6]"
                    Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                    Name                    " Terminator "
                    Position                [460, 291, 480, 309]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 190]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "T"
                    SrcPort                 1
                    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                "V"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator1"
                  Ports                   [2, 1]
                  Position                [620, 335, 665, 370]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                  Port {
                    PortNumber              1
                    Name                    "T"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "T_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator2"
                  Ports                   [2, 1]
                  Position                [620, 395, 665, 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                    "Integrator3"
                  Ports                   [2, 1]
                  Position                [620, 455, 665, 490]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator4"
                  Ports                   [2, 1]
                  Position                [620, 515, 665, 550]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator5"
                  Ports                   [2, 1]
                  Position                [620, 575, 665, 610]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Constant
                  Name                    "T_init"
                  Position                [245, 181, 330, 209]
                  ForegroundColor         "green"
                  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               Constant
                  Name                    "m_dot_air"
                  Position                [870, 250, 900, 280]
                  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                [245, 151, 330, 179]
                  ForegroundColor         "green"
                  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                [245, 241, 330, 269]
                  ForegroundColor         "green"
                  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                [245, 211, 330, 239]
                  ForegroundColor         "green"
                  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                [245, 271, 330, 299]
                  ForegroundColor         "green"
                  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                [1125, 588, 1155, 602]
                  ForegroundColor         "blue"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 1
                  DstBlock                "Integrator1"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Q_dot"
                  SrcPort                 1
                  Points                  [-165, 0; 0, 345]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 16
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "m_dot_air"
                  SrcPort                 1
                  Points                  [75, 0; 0, 335]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 2
                  DstBlock                "Integrator2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 3
                  DstBlock                "Integrator3"
                  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 {
                  SrcBlock                "Integrator3"
                  SrcPort                 1
                  Points                  [20, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 165; -330, 0; 0, -285]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 3
                  }
                }
                Line {
                  SrcBlock                "Integrator4"
                  SrcPort                 1
                  Points                  [25, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [0, 100; -340, 0; 0, -260]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 4
                  }
                }
                Line {
                  SrcBlock                "Integrator5"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 5
                  }
                  Branch {
                    Points                  [0, 35; -350, 0; 0, -235]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 5
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 1
                  Points                  [135, 0; 0, 175]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 2
                  Points                  [120, 0; 0, 120]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 2
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 3
                  Points                  [60, 0; 0, 110]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 6
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 4
                  Points                  [45, 0; 0, 55]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 7
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 5
                  DstBlock                "Bus\nCreator1"
                  DstPort                 8
                }
                Line {
                  Name                    "m_air"
                  SrcBlock                "Integrator2"
                  SrcPort                 1
                  Points                  [15, 0]
                  Branch {
                    Points                  [0, -125; 310, 0; 0, 295]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                  Branch {
                    Labels                  [1, 1]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [0, 230; -320, 0; 0, -310]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Integrator1"
                  SrcPort                 1
                  Points                  [10, 0]
                  Branch {
                    Points                  [0, -50; 330, 0; 0, 265]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 295; -310, 0]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 1
                  }
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 1
                  }
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  DstBlock                "Out"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector5"
                  DstPort                 1
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 1
                  Points                  [-85, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 6
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 2
                  Points                  [-90, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 7
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 3
                  Points                  [-95, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 8
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 4
                  Points                  [-100, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 9
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 5
                  Points                  [-105, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 10
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 1
                  Points                  [-110, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 11
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 2
                  Points                  [-115, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 12
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 3
                  Points                  [-120, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 13
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 4
                  Points                  [-125, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 14
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 5
                  Points                  [-130, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "V"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 1
                  }
                  Branch {
                    Points                  [0, 520]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 6
                  }
                }
                Line {
                  SrcBlock                "p_init"
                  SrcPort                 1
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "T_init"
                  SrcPort                 1
                  Points                  [80, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, -80; 165, 0; 0, 245]
                    DstBlock                "Integrator1"
                    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
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 1
                  Points                  [10, 0; 0, 275]
                  DstBlock                "Integrator2"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 2
                  Points                  [15, 0; 0, 290]
                  DstBlock                "Integrator3"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 3
                  Points                  [20, 0; 0, 305]
                  DstBlock                "Integrator4"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 4
                  Points                  [25, 0; 0, 320]
                  DstBlock                "Integrator5"
                  DstPort                 2
                }
              }
            }
            Block {
              BlockType               Outport
              Name                    "p_out"
              Position                [650, 118, 680, 132]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [370, 88, 400, 102]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                "FR"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 1
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 2
              DstBlock                "Vol_2D"
              DstPort                 2
            }
            Line {
              SrcBlock                "Vol_2D"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                DstBlock                "p_out"
                DstPort                 1
              }
              Branch {
                Points                  [0, 70; -410, 0]
                DstBlock                "FR"
                DstPort                 2
              }
            }
            Line {
              SrcBlock                "L_5"
              SrcPort                 1
              Points                  [0, 0; 0, -50]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, -130]
                DstBlock                "FR"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [0, -35]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [0, -125]
              DstBlock                "Vol_2D"
              DstPort                 4
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [0, -20]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_in"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot_ext"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 3
              Points                  [15, 0; 0, 40; 90, 0]
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 3
            }
          }
        }
        Block {
          BlockType               SubSystem
          Name                    "Duct_Heat_Transfer_Wall_5"
          Ports                   [3, 2]
          Position                [1180, 240, 1395, 300]
          NamePlacement           "alternate"
          MinAlgLoopOccurrences   off
          RTWSystemCode           "Auto"
          FunctionWithSeparateData off
          MaskHideContents        off
          System {
            Name                    "Duct_Heat_Transfer_Wall_5"
            Location                [-62, 327, 950, 977]
            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_in"
              Position                [175, 88, 205, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_in"
              Position                [475, 88, 505, 102]
              ForegroundColor         "green"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_ext"
              Position                [390, 128, 420, 142]
              ForegroundColor         "green"
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Constant
              Name                    "D_major"
              Position                [230, 320, 280, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_major"
              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                    "D_minor"
              Position                [285, 320, 335, 350]
              Orientation             "up"
              ForegroundColor         "green"
              ShowName                off
              Value                   "D_minor"
              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, 1]
              Position                [370, 256, 500, 304]
              ForegroundColor         "green"
              ShowName                off
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              MaskType                "Stateflow"
              MaskDescription         "Embedded MATLAB block"
              MaskDisplay             "disp('Volume');"
              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.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "L"
                  Position                [20, 101, 40, 119]
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_major"
                  Position                [20, 136, 40, 154]
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "D_minor"
                  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 basic_componen"
"ts 90"
                  Ports                   [3, 2]
                  Position                [180, 100, 230, 180]
                  FunctionName            "sf_sfun"
                  PortCounts              "[3 2]"
                  Port {
                    PortNumber              2
                    Name                    "V"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                }
                Block {
                  BlockType               Terminator
                  Name                    " Terminator "
                  Position                [460, 191, 480, 209]
                }
                Block {
                  BlockType               Outport
                  Name                    "V"
                  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                "L"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 1
                }
                Line {
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [120, 0]
                  DstBlock                " SFunction "
                  DstPort                 2
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  DstBlock                " SFunction "
                  DstPort                 3
                }
                Line {
                  Name                    "V"
                  Labels                  [0, 0]
                  SrcBlock                " SFunction "
                  SrcPort                 2
                  DstBlock                "V"
                  DstPort                 1
                }
              }
            }
            Block {
              BlockType               SubSystem
              Name                    "FR"
              Ports                   [3, 3]
              Position                [230, 86, 345, 144]
              MinAlgLoopOccurrences   on
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "FR"
                Location                [0, 82, 996, 752]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                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               Inport
                  Name                    "L"
                  Position                [30, 628, 60, 642]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [377, 1025, 498, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator2"
                  Ports                   [8, 1]
                  Position                [182, 1025, 303, 1030]
                  Orientation             "down"
                  NamePlacement           "alternate"
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector3"
                  Ports                   [1, 6]
                  Position                [85, 37, 90, 138]
                  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                [85, 142, 90, 243]
                  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                    "Constant2"
                  Position                [100, 910, 130, 940]
                  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                    "D_major"
                  Position                [85, 284, 140, 316]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_major"
                  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                    "D_minor"
                  Position                [85, 319, 140, 351]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "D_minor"
                  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                   [28, 11]
                  Position                [176, 725, 734, 885]
                  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                    "x_H2O_gas"
                    PropagatedSignals       "x_H2O_gas"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              4
                    Name                    "x_CO2"
                    PropagatedSignals       "x_CO2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O_liq"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              6
                    Name                    "p"
                    PropagatedSignals       "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              7
                    Name                    "m_dot_air"
                    PropagatedSignals       "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              8
                    Name                    "p"
                    PropagatedSignals       "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              9
                    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                    "n_unit"
                    Position                [20, 101, 40, 119]
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_major"
                    Position                [20, 136, 40, 154]
                    Port                    "2"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "D_minor"
                    Position                [20, 171, 40, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_wall"
                    Position                [20, 206, 40, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "b_isolation"
                    Position                [20, 246, 40, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_wall"
                    Position                [20, 281, 40, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_isolation"
                    Position                [20, 316, 40, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_wall"
                    Position                [20, 351, 40, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "c_isolation"
                    Position                [20, 386, 40, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_wall"
                    Position                [20, 426, 40, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "lambda_isolation"
                    Position                [20, 461, 40, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "L"
                    Position                [20, 496, 40, 514]
                    Port                    "12"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "zeta"
                    Position                [20, 531, 40, 549]
                    Port                    "13"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "mode"
                    Position                [20, 566, 40, 584]
                    Port                    "14"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_1"
                    Position                [20, 606, 40, 624]
                    Port                    "15"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_1"
                    Position                [20, 641, 40, 659]
                    Port                    "16"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_1"
                    Position                [20, 676, 40, 694]
                    Port                    "17"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_1"
                    Position                [20, 711, 40, 729]
                    Port                    "18"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_1"
                    Position                [20, 746, 40, 764]
                    Port                    "19"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_1"
                    Position                [20, 786, 40, 804]
                    Port                    "20"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "p_in_2"
                    Position                [20, 821, 40, 839]
                    Port                    "21"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "rho_in_2"
                    Position                [20, 856, 40, 874]
                    Port                    "22"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_in_2"
                    Position                [20, 891, 40, 909]
                    Port                    "23"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_gas_in_2"
                    Position                [20, 926, 40, 944]
                    Port                    "24"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_CO2_in_2"
                    Position                [20, 966, 40, 984]
                    Port                    "25"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "x_H2O_liq_in_2"
                    Position                [20, 1001, 40, 1019]
                    Port                    "26"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_wall"
                    Position                [20, 1036, 40, 1054]
                    Port                    "27"
                    IconDisplay             "Port number"
                    }
                    Block {
                    BlockType               Inport
                    Name                    "T_ambient"
                    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 basic_compon"
"ents 91"
                    Ports                   [28, 12]
                    Position                [180, 120, 230, 700]
                    FunctionName            "sf_sfun"
                    PortCounts              "[28 12]"
                    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"
                    }
                    Port {
                    PortNumber              7
                    Name                    "p_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              8
                    Name                    "m_dot_air_1"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              9
                    Name                    "p_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              10
                    Name                    "m_dot_air_2"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              11
                    Name                    "Q_dot_fluid"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              12
                    Name                    "T_dot_wall"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    }
                    Block {
                    BlockType               Terminator
                    Name                    " Terminator "
                    Position                [460, 711, 480, 729]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_1"
                    Position                [460, 281, 480, 299]
                    Port                    "6"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_1"
                    Position                [460, 316, 480, 334]
                    Port                    "7"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "p_2"
                    Position                [460, 351, 480, 369]
                    Port                    "8"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "m_dot_air_2"
                    Position                [460, 386, 480, 404]
                    Port                    "9"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "Q_dot_fluid"
                    Position                [460, 426, 480, 444]
                    Port                    "10"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "T_dot_wall"
                    Position                [460, 461, 480, 479]
                    Port                    "11"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 585]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "n_unit"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "D_major"
                    SrcPort                 1
                    Points                  [120, 0]
                    DstBlock                " SFunction "
                    DstPort                 2
                    }
                    Line {
                    SrcBlock                "D_minor"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 3
                    }
                    Line {
                    SrcBlock                "b_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 4
                    }
                    Line {
                    SrcBlock                "b_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 5
                    }
                    Line {
                    SrcBlock                "rho_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    Line {
                    SrcBlock                "rho_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 7
                    }
                    Line {
                    SrcBlock                "c_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 8
                    }
                    Line {
                    SrcBlock                "c_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 9
                    }
                    Line {
                    SrcBlock                "lambda_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 10
                    }
                    Line {
                    SrcBlock                "lambda_isolation"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 11
                    }
                    Line {
                    SrcBlock                "L"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 12
                    }
                    Line {
                    SrcBlock                "zeta"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 13
                    }
                    Line {
                    SrcBlock                "mode"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 14
                    }
                    Line {
                    SrcBlock                "p_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 15
                    }
                    Line {
                    SrcBlock                "rho_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 16
                    }
                    Line {
                    SrcBlock                "T_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 17
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 18
                    }
                    Line {
                    SrcBlock                "x_CO2_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 19
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_1"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 20
                    }
                    Line {
                    SrcBlock                "p_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 21
                    }
                    Line {
                    SrcBlock                "rho_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 22
                    }
                    Line {
                    SrcBlock                "T_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 23
                    }
                    Line {
                    SrcBlock                "x_H2O_gas_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 24
                    }
                    Line {
                    SrcBlock                "x_CO2_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 25
                    }
                    Line {
                    SrcBlock                "x_H2O_liq_in_2"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 26
                    }
                    Line {
                    SrcBlock                "T_wall"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 27
                    }
                    Line {
                    SrcBlock                "T_ambient"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 28
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 7
                    DstBlock                "p_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_1"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 8
                    DstBlock                "m_dot_air_1"
                    DstPort                 1
                    }
                    Line {
                    Name                    "p_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 9
                    DstBlock                "p_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "m_dot_air_2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 10
                    DstBlock                "m_dot_air_2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "Q_dot_fluid"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 11
                    DstBlock                "Q_dot_fluid"
                    DstPort                 1
                    }
                    Line {
                    Name                    "T_dot_wall"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 12
                    DstBlock                "T_dot_wall"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator"
                  Ports                   [1, 1]
                  Position                [690, 910, 720, 940]
                  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                    "T_ambient"
                  Position                [765, 670, 890, 710]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  ShowName                off
                  Value                   "T_ambient"
                  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                    "b_isolation"
                  Position                [85, 388, 150, 422]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_isolation"
                  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                    "b_wall"
                  Position                [85, 354, 140, 386]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "b_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                    "c_isolation"
                  Position                [85, 528, 150, 562]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "c_isolation"
                  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                [85, 494, 140, 526]
                  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                    "lambda_isolation"
                  Position                [85, 598, 170, 632]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_isolation"
                  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                    "lambda_wall"
                  Position                [85, 563, 150, 597]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "lambda_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                    "mode"
                  Position                [85, 674, 115, 706]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "mode"
                  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_unit"
                  Position                [85, 249, 140, 281]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "n_unit"
                  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_isolation"
                  Position                [85, 458, 150, 492]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_isolation"
                  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_wall"
                  Position                [85, 424, 140, 456]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "rho_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                    "zeta"
                  Position                [85, 639, 115, 671]
                  ForegroundColor         "green"
                  ShowName                off
                  Value                   "zeta"
                  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_1"
                  Position                [238, 1055, 252, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Out_2"
                  Position                [433, 1055, 447, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "2"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Block {
                  BlockType               Outport
                  Name                    "Q_dot_fluid"
                  Position                [648, 1055, 662, 1085]
                  Orientation             "down"
                  ForegroundColor         "blue"
                  Port                    "3"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Bus\nCreator2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_1"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 6
                  Points                  [590, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 26
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 5
                  Points                  [570, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 25
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 4
                  Points                  [550, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 24
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 3
                  Points                  [530, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 23
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 2
                  Points                  [510, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 22
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector4"
                  SrcPort                 1
                  Points                  [490, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 21
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector4"
                  DstPort                 1
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 6
                  Points                  [470, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 20
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 5
                  Points                  [450, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 19
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 4
                  Points                  [430, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 18
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 3
                  Points                  [410, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 17
                }
                Line {
                  Name                    "<rho>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 2
                  Points                  [390, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 16
                }
                Line {
                  Name                    "<p>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector3"
                  SrcPort                 1
                  Points                  [370, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "zeta"
                  SrcPort                 1
                  Points                  [305, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 13
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  DstBlock                "Bus\nSelector3"
                  DstPort                 1
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "L"
                  SrcPort                 1
                  Points                  [340, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 12
                }
                Line {
                  Labels                  [2, 0]
                  SrcBlock                "D_major"
                  SrcPort                 1
                  Points                  [60, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 2
                }
                Line {
                  Name                    "m_air"
                  Labels                  [0, 0]
                  SrcBlock                "Constant2"
                  SrcPort                 1
                  Points                  [0, 0; 100, 0]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 1
                  Points                  [0, 0; 0, 15]
                  Branch {
                    DstBlock                "Bus\nCreator2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [195, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 2
                  Points                  [0, 0; 0, 25]
                  Branch {
                    Points                  [-35, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [160, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 3
                  Points                  [0, 0; 0, 45]
                  Branch {
                    Points                  [155, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 6
                  }
                  Branch {
                    Points                  [-40, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 6
                  }
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 4
                  Points                  [0, 0; 0, 55]
                  Branch {
                    Points                  [120, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 7
                  }
                  Branch {
                    Points                  [-75, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 7
                  }
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 5
                  Points                  [0, 0; 0, 65]
                  Branch {
                    Points                  [-110, 0]
                    DstBlock                "Bus\nCreator2"
                    DstPort                 8
                  }
                  Branch {
                    Points                  [85, 0]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 8
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 6
                  Points                  [0, 75; -265, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 7
                  Points                  [0, 85; -255, 0]
                  DstBlock                "Bus\nCreator2"
                  DstPort                 5
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 8
                  Points                  [0, 95; -170, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 9
                  Points                  [0, 105; -160, 0]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Out_2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "mode"
                  SrcPort                 1
                  Points                  [325, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 14
                }
                Line {
                  SrcBlock                "D_minor"
                  SrcPort                 1
                  Points                  [80, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 3
                }
                Line {
                  SrcBlock                "b_wall"
                  SrcPort                 1
                  Points                  [100, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 4
                }
                Line {
                  SrcBlock                "b_isolation"
                  SrcPort                 1
                  Points                  [110, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "rho_wall"
                  SrcPort                 1
                  Points                  [140, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "rho_isolation"
                  SrcPort                 1
                  Points                  [150, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 7
                }
                Line {
                  SrcBlock                "c_wall"
                  SrcPort                 1
                  Points                  [180, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 8
                }
                Line {
                  SrcBlock                "c_isolation"
                  SrcPort                 1
                  Points                  [190, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 9
                }
                Line {
                  SrcBlock                "lambda_wall"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 10
                }
                Line {
                  SrcBlock                "lambda_isolation"
                  SrcPort                 1
                  Points                  [210, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 11
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 10
                  DstBlock                "Q_dot_fluid"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "T_ambient"
                  SrcPort                 1
                  Points                  [-35, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 28
                }
                Line {
                  SrcBlock                "Embedded\nMATLA Function"
                  SrcPort                 11
                  DstBlock                "Integrator"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Integrator"
                  SrcPort                 1
                  Points                  [0, 10; 45, 0; 0, -250; -45, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 27
                }
                Line {
                  SrcBlock                "n_unit"
                  SrcPort                 1
                  Points                  [40, 0]
                  DstBlock                "Embedded\nMATLA Function"
                  DstPort                 1
                }
                Annotation {
                  Position                [430, 886]
                  UseDisplayTextAsClickCallback off
                }
              }
            }
            Block {
              BlockType               Constant
              Name                    "L_5"
              Position                [195, 320, 225, 350]
              Orientation             "up"
              ForegroundColor         "green"
              NamePlacement           "alternate"
              ShowName                off
              Value                   "L/5"
              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                    "Sum"
              Ports                   [2, 1]
              Position                [445, 125, 465, 145]
              ShowName                off
              IconShape               "round"
              Inputs                  "|++"
              InputSameDT             off
              OutDataTypeMode         "Inherit via internal rule"
              SaturateOnIntegerOverflow off
            }
            Block {
              BlockType               SubSystem
              Name                    "Vol_2D"
              Ports                   [4, 1]
              Position                [530, 89, 610, 161]
              MinAlgLoopOccurrences   off
              RTWSystemCode           "Auto"
              FunctionWithSeparateData off
              MaskHideContents        off
              System {
                Name                    "Vol_2D"
                Location                [198, 172, 1194, 826]
                Open                    off
                ModelBrowserVisibility  off
                ModelBrowserWidth       200
                ScreenColor             "white"
                PaperOrientation        "landscape"
                PaperPositionMode       "auto"
                PaperType               "A4"
                PaperUnits              "centimeters"
                TiledPaperMargins       "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
                TiledPageScale          1
                ShowPageBoundaries      off
                ZoomFactor              "100"
                Block {
                  BlockType               Inport
                  Name                    "In_1"
                  Position                [200, 78, 230, 92]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "In_2"
                  Position                [200, 183, 230, 197]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "2"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "Q_dot"
                  Position                [200, 263, 230, 277]
                  Orientation             "left"
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "3"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               Inport
                  Name                    "V"
                  Position                [275, 128, 305, 142]
                  ForegroundColor         "green"
                  NamePlacement           "alternate"
                  Port                    "4"
                  IconDisplay             "Port number"
                }
                Block {
                  BlockType               BusCreator
                  Name                    "Bus\nCreator1"
                  Ports                   [8, 1]
                  Position                [1085, 531, 1090, 654]
                  ShowName                off
                  Inputs                  "'p','rho','T','m_air','m_dot_air','"
"x_H2O_gas','x_CO2','x_H2O_liq'"
                  DisplayOption           "bar"
                }
                Block {
                  BlockType               BusSelector
                  Name                    "Bus\nSelector2"
                  Ports                   [1, 5]
                  Position                [170, 34, 175, 136]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [170, 139, 175, 241]
                  Orientation             "left"
                  ShowName                off
                  OutputSignals           "T,m_dot_air,x_H2O_gas,x_CO2,x_H2O_l"
"iq"
                  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                [430, 123, 570, 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 basic_compon"
"ents 92"
                    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                [385, 308, 575, 622]
                  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 basic_compon"
"ents 93"
                    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                   [6, 5]
                  Position                [735, 324, 900, 686]
                  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"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "p_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              2
                    Name                    "rho"
                    PropagatedSignals       "rho"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                  }
                  Port {
                    PortNumber              3
                    Name                    "x_H2O_gas"
                    PropagatedSignals       "x_WV"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "x_H2O_gas_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                  Port {
                    PortNumber              4
                    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              5
                    Name                    "x_H2O_liq"
                    PropagatedSignals       "x_H2O"
                    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               Demux
                    Name                    " Demux "
                    Ports                   [1, 1]
                    Position                [270, 280, 320, 320]
                    Outputs                 "1"
                    }
                    Block {
                    BlockType               "S-Function"
                    Name                    " SFunction "
                    Tag                     "Stateflow S-Function basic_compon"
"ents 94"
                    Ports                   [6, 6]
                    Position                [180, 102, 230, 243]
                    FunctionName            "sf_sfun"
                    PortCounts              "[6 6]"
                    Port {
                    PortNumber              2
                    Name                    "p"
                    RTWStorageClass         "Auto"
                    DataLoggingNameMode     "SignalName"
                    }
                    Port {
                    PortNumber              3
                    Name                    "rho"
                    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               Terminator
                    Name                    " Terminator "
                    Position                [460, 291, 480, 309]
                    }
                    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                    "x_H2O_gas"
                    Position                [460, 171, 480, 189]
                    Port                    "3"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_CO2"
                    Position                [460, 206, 480, 224]
                    Port                    "4"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Block {
                    BlockType               Outport
                    Name                    "x_H2O_liq"
                    Position                [460, 246, 480, 264]
                    Port                    "5"
                    IconDisplay             "Port number"
                    BusOutputAsStruct       off
                    }
                    Line {
                    SrcBlock                " SFunction "
                    SrcPort                 1
                    Points                  [0, 190]
                    DstBlock                " Demux "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                " Demux "
                    SrcPort                 1
                    DstBlock                " Terminator "
                    DstPort                 1
                    }
                    Line {
                    SrcBlock                "T"
                    SrcPort                 1
                    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                "V"
                    SrcPort                 1
                    DstBlock                " SFunction "
                    DstPort                 6
                    }
                    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                    "x_H2O_gas"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 4
                    DstBlock                "x_H2O_gas"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_CO2"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 5
                    DstBlock                "x_CO2"
                    DstPort                 1
                    }
                    Line {
                    Name                    "x_H2O_liq"
                    Labels                  [0, 0]
                    SrcBlock                " SFunction "
                    SrcPort                 6
                    DstBlock                "x_H2O_liq"
                    DstPort                 1
                    }
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator1"
                  Ports                   [2, 1]
                  Position                [620, 335, 665, 370]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                  Port {
                    PortNumber              1
                    Name                    "T"
                    TestPoint               on
                    RTWStorageClass         "Auto"
                    DataLogging             on
                    DataLoggingNameMode     "Custom"
                    DataLoggingName         "T_re_init"
                    DataLoggingLimitDataPoints on
                    DataLoggingMaxPoints    "1"
                  }
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator2"
                  Ports                   [2, 1]
                  Position                [620, 395, 665, 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                    "Integrator3"
                  Ports                   [2, 1]
                  Position                [620, 455, 665, 490]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator4"
                  Ports                   [2, 1]
                  Position                [620, 515, 665, 550]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Integrator
                  Name                    "Integrator5"
                  Ports                   [2, 1]
                  Position                [620, 575, 665, 610]
                  NamePlacement           "alternate"
                  ShowName                off
                  InitialConditionSource  "external"
                  LimitOutput             on
                  LowerSaturationLimit    "0"
                  IgnoreLimit             off
                }
                Block {
                  BlockType               Constant
                  Name                    "T_init"
                  Position                [245, 181, 330, 209]
                  ForegroundColor         "green"
                  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               Constant
                  Name                    "m_dot_air"
                  Position                [870, 250, 900, 280]
                  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                [245, 151, 330, 179]
                  ForegroundColor         "green"
                  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                [245, 241, 330, 269]
                  ForegroundColor         "green"
                  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                [245, 211, 330, 239]
                  ForegroundColor         "green"
                  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                [245, 271, 330, 299]
                  ForegroundColor         "green"
                  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                [1125, 588, 1155, 602]
                  ForegroundColor         "blue"
                  IconDisplay             "Port number"
                  BusOutputAsStruct       off
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 1
                  DstBlock                "Integrator1"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Q_dot"
                  SrcPort                 1
                  Points                  [-165, 0; 0, 345]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 16
                }
                Line {
                  Name                    "m_dot_air"
                  Labels                  [0, 0]
                  SrcBlock                "m_dot_air"
                  SrcPort                 1
                  Points                  [75, 0; 0, 335]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 5
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 2
                  DstBlock                "Integrator2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Embedded_MATLAB_Function_1"
                  SrcPort                 3
                  DstBlock                "Integrator3"
                  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 {
                  SrcBlock                "Integrator3"
                  SrcPort                 1
                  Points                  [20, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 165; -330, 0; 0, -285]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 3
                  }
                }
                Line {
                  SrcBlock                "Integrator4"
                  SrcPort                 1
                  Points                  [25, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 4
                  }
                  Branch {
                    Points                  [0, 100; -340, 0; 0, -260]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 4
                  }
                }
                Line {
                  SrcBlock                "Integrator5"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 5
                  }
                  Branch {
                    Points                  [0, 35; -350, 0; 0, -235]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 5
                  }
                }
                Line {
                  Name                    "p"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 1
                  Points                  [135, 0; 0, 175]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 1
                }
                Line {
                  Name                    "rho"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 2
                  Points                  [120, 0; 0, 120]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 2
                }
                Line {
                  Name                    "x_H2O_gas"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 3
                  Points                  [60, 0; 0, 110]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 6
                }
                Line {
                  Name                    "x_CO2"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 4
                  Points                  [45, 0; 0, 55]
                  DstBlock                "Bus\nCreator1"
                  DstPort                 7
                }
                Line {
                  Name                    "x_H2O_liq"
                  Labels                  [0, 0]
                  SrcBlock                "Embedded_MATLAB_Function_2"
                  SrcPort                 5
                  DstBlock                "Bus\nCreator1"
                  DstPort                 8
                }
                Line {
                  Name                    "m_air"
                  SrcBlock                "Integrator2"
                  SrcPort                 1
                  Points                  [15, 0]
                  Branch {
                    Points                  [0, -125; 310, 0; 0, 295]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 4
                  }
                  Branch {
                    Labels                  [1, 1]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 2
                  }
                  Branch {
                    Points                  [0, 230; -320, 0; 0, -310]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 2
                  }
                }
                Line {
                  Name                    "T"
                  Labels                  [0, 0]
                  SrcBlock                "Integrator1"
                  SrcPort                 1
                  Points                  [10, 0]
                  Branch {
                    Points                  [0, -50; 330, 0; 0, 265]
                    DstBlock                "Bus\nCreator1"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, 295; -310, 0]
                    DstBlock                "Embedded_MATLAB_Function_1"
                    DstPort                 1
                  }
                  Branch {
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 1
                  }
                }
                Line {
                  SrcBlock                "In_1"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector2"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "Bus\nCreator1"
                  SrcPort                 1
                  DstBlock                "Out"
                  DstPort                 1
                }
                Line {
                  SrcBlock                "In_2"
                  SrcPort                 1
                  Points                  [0, 0]
                  DstBlock                "Bus\nSelector5"
                  DstPort                 1
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 1
                  Points                  [-85, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 6
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 2
                  Points                  [-90, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 7
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 3
                  Points                  [-95, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 8
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 4
                  Points                  [-100, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 9
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector2"
                  SrcPort                 5
                  Points                  [-105, 0; 0, 370]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 10
                }
                Line {
                  Name                    "<T>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 1
                  Points                  [-110, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 11
                }
                Line {
                  Name                    "<m_dot_air>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 2
                  Points                  [-115, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 12
                }
                Line {
                  Name                    "<x_H2O_gas>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 3
                  Points                  [-120, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 13
                }
                Line {
                  Name                    "<x_CO2>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 4
                  Points                  [-125, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 14
                }
                Line {
                  Name                    "<x_H2O_liq>"
                  Labels                  [0, 0]
                  SrcBlock                "Bus\nSelector5"
                  SrcPort                 5
                  Points                  [-130, 0; 0, 365]
                  DstBlock                "Embedded_MATLAB_Function_1"
                  DstPort                 15
                }
                Line {
                  SrcBlock                "V"
                  SrcPort                 1
                  Points                  [30, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 1
                  }
                  Branch {
                    Points                  [0, 520]
                    DstBlock                "Embedded_MATLAB_Function_2"
                    DstPort                 6
                  }
                }
                Line {
                  SrcBlock                "p_init"
                  SrcPort                 1
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "T_init"
                  SrcPort                 1
                  Points                  [80, 0]
                  Branch {
                    DstBlock                "Embedded\nMATLAB Function"
                    DstPort                 3
                  }
                  Branch {
                    Points                  [0, -80; 165, 0; 0, 245]
                    DstBlock                "Integrator1"
                    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
                  DstBlock                "Embedded\nMATLAB Function"
                  DstPort                 6
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 1
                  Points                  [10, 0; 0, 275]
                  DstBlock                "Integrator2"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 2
                  Points                  [15, 0; 0, 290]
                  DstBlock                "Integrator3"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 3
                  Points                  [20, 0; 0, 305]
                  DstBlock                "Integrator4"
                  DstPort                 2
                }
                Line {
                  SrcBlock                "Embedded\nMATLAB Function"
                  SrcPort                 4
                  Points                  [25, 0; 0, 320]
                  DstBlock                "Integrator5"
                  DstPort                 2
                }
              }
            }
            Block {
              BlockType               Outport
              Name                    "p_out"
              Position                [650, 118, 680, 132]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_out"
              Position                [370, 88, 400, 102]
              ForegroundColor         "blue"
              NamePlacement           "alternate"
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                "p_in"
              SrcPort                 1
              DstBlock                "FR"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 1
              DstBlock                "m_dot_out"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 2
              DstBlock                "Vol_2D"
              DstPort                 2
            }
            Line {
              SrcBlock                "Vol_2D"
              SrcPort                 1
              Points                  [10, 0]
              Branch {
                DstBlock                "p_out"
                DstPort                 1
              }
              Branch {
                Points                  [0, 70; -410, 0]
                DstBlock                "FR"
                DstPort                 2
              }
            }
            Line {
              SrcBlock                "L_5"
              SrcPort                 1
              Points                  [0, 0; 0, -50]
              Branch {
                DstBlock                "Embedded\nMATLAB Function"
                DstPort                 1
              }
              Branch {
                Points                  [0, -130]
                DstBlock                "FR"
                DstPort                 3
              }
            }
            Line {
              SrcBlock                "D_major"
              SrcPort                 1
              Points                  [0, -35]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 2
            }
            Line {
              SrcBlock                "Embedded\nMATLAB Function"
              SrcPort                 1
              Points                  [0, -125]
              DstBlock                "Vol_2D"
              DstPort                 4
            }
            Line {
              SrcBlock                "D_minor"
              SrcPort                 1
              Points                  [0, -20]
              DstBlock                "Embedded\nMATLAB Function"
              DstPort                 3
            }
            Line {
              SrcBlock                "m_dot_in"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 1
            }
            Line {
              SrcBlock                "Q_dot_ext"
              SrcPort                 1
              DstBlock                "Sum"
              DstPort                 1
            }
            Line {
              SrcBlock                "FR"
              SrcPort                 3
              Points                  [15, 0; 0, 40; 90, 0]
              DstBlock                "Sum"
              DstPort                 2
            }
            Line {
              SrcBlock                "Sum"
              SrcPort                 1
              DstBlock                "Vol_2D"
              DstPort                 3
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "p_out"
          Position                [1435, 248, 1465, 262]
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "m_dot_out"
          Position                [1435, 278, 1465, 292]
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Node"
          Position                [488, 25, 502, 55]
          Orientation             "up"
          ForegroundColor         "blue"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_1"
          SrcPort                 2
          Points                  [40, 0]
          DstBlock                "Duct_Heat_Transfer_Wall_2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_2"
          SrcPort                 1
          Points                  [5, 0; 0, -30]
          Branch {
            Points                  [0, -10; -150, 0]
            DstBlock                "Bus\nCreator"
            DstPort                 2
          }
          Branch {
            Points                  [-515, 0]
            DstBlock                "Duct_Heat_Transfer_Wall_1"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_2"
          SrcPort                 2
          Points                  [30, 0]
          DstBlock                "Duct_Heat_Transfer_Wall_3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_3"
          SrcPort                 2
          Points                  [35, 0]
          DstBlock                "Duct_Heat_Transfer_Wall_4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_3"
          SrcPort                 1
          Points                  [10, 0; 0, -35]
          Branch {
            Points                  [0, -10; -335, 0]
            DstBlock                "Bus\nCreator"
            DstPort                 3
          }
          Branch {
            Points                  [-510, 0]
            DstBlock                "Duct_Heat_Transfer_Wall_2"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_4"
          SrcPort                 1
          Points                  [10, 0; 0, -40]
          Branch {
            Points                  [0, -10; -520, 0]
            DstBlock                "Bus\nCreator"
            DstPort                 4
          }
          Branch {
            Points                  [-515, 0]
            DstBlock                "Duct_Heat_Transfer_Wall_3"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_4"
          SrcPort                 2
          Points                  [35, 0]
          DstBlock                "Duct_Heat_Transfer_Wall_5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_5"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            DstBlock                "p_out"
            DstPort                 1
          }
          Branch {
            Points                  [0, -45; -515, 0]
            DstBlock                "Duct_Heat_Transfer_Wall_4"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "m_dot_in"
          SrcPort                 1
          DstBlock                "Duct_Heat_Transfer_Wall_1"
          DstPort                 2
        }
        Line {
          SrcBlock                "p_in"
          SrcPort                 1
          Points                  [1100, 0; 0, -60]
          DstBlock                "Duct_Heat_Transfer_Wall_5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            Points                  [270, 0]
            Branch {
              Points                  [270, 0]
              Branch {
                Points                  [270, 0]
                Branch {
                  DstBlock                "Duct_Heat_Transfer_Wall_4"
                  DstPort                 3
                }
                Branch {
                  Points                  [270, 0]
                  DstBlock                "Duct_Heat_Transfer_Wall_5"
                  DstPort                 3
                }
              }
              Branch {
                DstBlock                "Duct_Heat_Transfer_Wall_3"
                DstPort                 3
              }
            }
            Branch {
              Points                  [0, -55]
              DstBlock                "Duct_Heat_Transfer_Wall_2"
              DstPort                 3
            }
          }
          Branch {
            DstBlock                "Duct_Heat_Transfer_Wall_1"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_5"
          SrcPort                 2
          DstBlock                "m_dot_out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Duct_Heat_Transfer_Wall_1"
          SrcPort                 1
          Points                  [45, 0]
          DstBlock                "Bus\nCreator"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Node"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "FR_"
      Ports                   [2, 2]
      Position                [160, 17, 240, 73]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Diameter [m]|Length [m]|Minor Loss Coefficient|"
"Mode = 0: State Variables = Average Input variables, Mode = 1: State Variable"
"s = Input Higher Pressure"
      MaskStyleString         "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString        "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString       "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables           "D=@1;L=@2;zeta=@3;mode=@4;"
      MaskDisplay             "plot([.5],[.5],[1 1 2 2],[1 2 1 2],[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|NaN"
      MaskTabNameString       ",,,"
      System {
        Name                    "FR_"
        Location                [6, 82, 1002, 752]
        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, 650, 498, 655]
          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                [172, 650, 293, 655]
          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                [85, 37, 90, 138]
          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                [85, 142, 90, 243]
          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                    "D"
          Position                [85, 250, 115, 280]
          ForegroundColor         "green"
          ShowName                off
          Value                   "D"
          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                   [16, 9]
          Position                [170, 385, 615, 510]
          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                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "p"
            PropagatedSignals       "p_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "p"
            PropagatedSignals       "p_2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              9
            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                    "D"
              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                    "zeta"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "mode"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_1"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_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                    "p_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              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 basic_components 1"
"7"
              Ports                   [16, 10]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 10]"
              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"
              }
              Port {
                PortNumber              7
                Name                    "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "m_dot_air_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_1"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_1"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_2"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_2"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 345]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "D"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "L"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "mode"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "p_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "T_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                "p_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
            Line {
              Name                    "p_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "p_1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "m_dot_air_1"
              DstPort                 1
            }
            Line {
              Name                    "p_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "p_2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "m_dot_air_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "L"
          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                    "m_air"
          Position                [100, 535, 130, 565]
          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                    "mode"
          Position                [85, 339, 115, 371]
          ForegroundColor         "green"
          ShowName                off
          Value                   "mode"
          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                    "zeta"
          Position                [85, 309, 115, 341]
          ForegroundColor         "green"
          ShowName                off
          Value                   "zeta"
          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_1"
          Position                [228, 680, 242, 710]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [433, 680, 447, 710]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [485, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 16
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [460, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 15
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [435, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 14
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [410, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 13
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [385, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 12
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [360, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 11
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [335, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [310, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [285, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [260, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [235, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 6
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [210, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          SrcBlock                "zeta"
          SrcPort                 1
          Points                  [135, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "L"
          SrcPort                 1
          Points                  [110, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "D"
          SrcPort                 1
          Points                  [85, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [205, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 15]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            Points                  [205, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 25]
          Branch {
            Points                  [-35, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [170, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 45]
          Branch {
            Points                  [165, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
          Branch {
            Points                  [-40, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          Points                  [0, 55]
          Branch {
            Points                  [130, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
          Branch {
            Points                  [-75, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          Points                  [0, 65]
          Branch {
            Points                  [-110, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [95, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 6
          Points                  [0, 75; -265, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 7
          Points                  [0, 85; -255, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 8
          Points                  [0, 95; -160, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 9
          Points                  [0, 105; -150, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "mode"
          SrcPort                 1
          Points                  [160, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Annotation {
          Position                [430, 511]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Flow_Split_"
      Ports                   [1, 2]
      Position                [25, 630, 105, 670]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Weighting Output 1|Weighting Output 2"
      MaskStyleString         "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString        "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString       "on,on"
      MaskVarAliasString      ","
      MaskVariables           "P_1=@1;P_2=@2;"
      MaskDisplay             "plot([-3],[0.5],[0 2 2 2],[1.5 1.5 2 1],[7],[2."
"5])\nport_label('input',1,'In')\nport_label('output',1,'Out_1')\nport_label('"
"output',2,'Out_2')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN"
      MaskTabNameString       ","
      System {
        Name                    "Flow_Split_"
        Location                [386, 111, 876, 895]
        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                [25, 503, 55, 517]
          ForegroundColor         "green"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [550, 25, 555, 320]
          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                [550, 680, 555, 975]
          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\nSelector16"
          Ports                   [1, 8]
          Position                [80, 360, 85, 655]
          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               Gain
          Name                    "Gain"
          Position                [250, 161, 355, 219]
          ShowName                off
          Gain                    "P_1/(P_1+P_2)"
          ParameterDataTypeMode   "Inherit via internal rule"
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Gain
          Name                    "Gain1"
          Position                [250, 496, 355, 554]
          ShowName                off
          Gain                    "P_2/(P_1+P_2)"
          ParameterDataTypeMode   "Inherit via internal rule"
          OutDataTypeMode         "Inherit via internal rule"
          SaturateOnIntegerOverflow off
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out_1"
          Position                [580, 168, 610, 182]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [580, 823, 610, 837]
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 2
          Points                  [0, 0; 115, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 3
          Points                  [0, 0; 125, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          DstBlock                "Bus\nSelector16"
          DstPort                 1
        }
        Line {
          Name                    "<m_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 4
          Points                  [0, 0; 135, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 6
          Points                  [0, 0; 360, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 7
          Points                  [0, 0; 370, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 8
          Points                  [0, 0; 380, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 1
          Points                  [0, 0; 105, 0]
          Branch {
            Points                  [0, -335]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
          Branch {
            Points                  [0, 320]
            DstBlock                "Bus\nCreator2"
            DstPort                 1
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Gain"
          SrcPort                 1
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 5
          Points                  [0, 0; 145, 0]
          Branch {
            DstBlock                "Gain"
            DstPort                 1
          }
          Branch {
            DstBlock                "Gain1"
            DstPort                 1
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Gain1"
          SrcPort                 1
          Points                  [80, 0; 0, 320]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_2"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "HR_Cond_"
      Ports                   [2, 2]
      Position                [260, 846, 375, 904]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Surface [m²]|Thickness [m]|Thermal Conductivity"
" [W/m K]"
      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;b=@2;lambda=@3;"
      MaskDisplay             "plot([0],[0],[0.2 0.25 0.3 0.35 0.4 0.45 0.5],["
"0.5 0.5 0.75 0.5 0.25 0.5 0.5],[0],[0])\ntext(0.4,0.15,'Cond')\nport_label('i"
"nput',1,'T_1')\nport_label('input',2,'T_2')\nport_label('output',1,'Q_dot_1')"
"\nport_label('output',2,'Q_dot_2')\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "HR_Cond_"
        Location                [123, 357, 1118, 1007]
        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_1"
          Position                [50, 43, 80, 57]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "T_2"
          Position                [50, 98, 80, 112]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [105, 140, 135, 170]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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                   [5, 2]
          Position                [187, 285, 503, 410]
          Orientation             "down"
          NamePlacement           "alternate"
          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\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                    "b"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "lambda"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_2"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 220, 320, 260]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 3"
              Ports                   [5, 3]
              Position                [180, 100, 230, 220]
              FunctionName            "sf_sfun"
              PortCounts              "[5 3]"
              Port {
                PortNumber              2
                Name                    "Q_dot_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "Q_dot_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 231, 480, 249]
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_1"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_2"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 120]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "A"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "b"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "lambda"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              Name                    "Q_dot_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "Q_dot_1"
              DstPort                 1
            }
            Line {
              Name                    "Q_dot_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "Q_dot_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "b"
          Position                [105, 175, 135, 205]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "b"
          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                    "lambda"
          Position                [105, 209, 155, 241]
          ForegroundColor         "green"
          ShowName                off
          Value                   "lambda"
          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                    "Q_dot_1"
          Position                [258, 435, 272, 465]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Q_dot_2"
          Position                [418, 435, 432, 465]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "T_1"
          SrcPort                 1
          Points                  [325, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          Labels                  [1, 0]
          SrcBlock                "lambda"
          SrcPort                 1
          Points                  [185, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "T_2"
          SrcPort                 1
          Points                  [390, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "A"
          SrcPort                 1
          Points                  [75, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          DstBlock                "Q_dot_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          DstBlock                "Q_dot_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "b"
          SrcPort                 1
          Points                  [140, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "HR_Conv_"
      Ports                   [2, 2]
      Position                [260, 686, 375, 744]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Surface [m²]|Convection Heat Transfer Coefficie"
"nt [W/m² K]"
      MaskStyleString         "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString        "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString       "on,on"
      MaskVarAliasString      ","
      MaskVariables           "A=@1;alpha=@2;"
      MaskDisplay             "plot([0],[0],[0.2 0.25 0.3 0.35 0.4 0.45 0.5],["
"0.5 0.5 0.75 0.5 0.25 0.5 0.5],[0],[0])\ntext(0.4,0.15,'Conv')\nport_label('i"
"nput',1,'T_1')\nport_label('input',2,'T_2')\nport_label('output',1,'Q_dot_1')"
"\nport_label('output',2,'Q_dot_2')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN"
      MaskTabNameString       ","
      System {
        Name                    "HR_Conv_"
        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                    "T_1"
          Position                [35, 43, 65, 57]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "T_2"
          Position                [35, 98, 65, 112]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [35, 140, 65, 170]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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                   [4, 2]
          Position                [107, 255, 423, 380]
          Orientation             "down"
          NamePlacement           "alternate"
          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\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                    "alpha"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_1"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 205, 320, 245]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 9"
"6"
              Ports                   [4, 3]
              Position                [180, 102, 230, 203]
              FunctionName            "sf_sfun"
              PortCounts              "[4 3]"
              Port {
                PortNumber              2
                Name                    "Q_dot_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "Q_dot_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 216, 480, 234]
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_1"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_2"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 105]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "A"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "alpha"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              Name                    "Q_dot_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "Q_dot_1"
              DstPort                 1
            }
            Line {
              Name                    "Q_dot_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "Q_dot_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "alpha"
          Position                [35, 173, 90, 207]
          ForegroundColor         "green"
          ShowName                off
          Value                   "alpha"
          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                    "Q_dot_1"
          Position                [178, 405, 192, 435]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Q_dot_2"
          Position                [338, 405, 352, 435]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "T_1"
          SrcPort                 1
          Points                  [235, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          Labels                  [1, 0]
          SrcBlock                "alpha"
          SrcPort                 1
          Points                  [130, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "T_2"
          SrcPort                 1
          Points                  [315, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "A"
          SrcPort                 1
          Points                  [75, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          DstBlock                "Q_dot_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          DstBlock                "Q_dot_1"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "HR_Conv_Thermal_Capacity_"
      Ports                   [2, 3]
      Position                [260, 606, 375, 664]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Surface [m²]|Convection Heat Transfer Coefficie"
"nt via Surface 1 [W/m² K]|Convection Heat Transfer Coefficient via Surface 2 "
"[W/m² K]|Mass [kg]|Specific Heat Capacity [J/kg K]|Initial Parameter: Tempera"
"ture [K]"
      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           "A=@1;alpha_1=@2;alpha_2=@3;m=@4;c=@5;T_init=@6;"
      MaskDisplay             "plot([0],[0],[0.2 0.25 0.3 0.35 0.4 0.45 0.5],["
"0.5 0.5 0.75 0.5 0.25 0.5 0.5],[0],[0])\ntext(0.4,0.15,'Conv')\ntext(0.4,0.85"
",'TC')\nport_label('input',1,'T_1')\nport_label('input',2,'T_2')\nport_label("
"'output',1,'Q_dot_1')\nport_label('output',2,'Q_dot_2')\nport_label('output',"
"3,'T')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "HR_Conv_Thermal_Capacity_"
        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                    "T_1"
          Position                [40, 38, 70, 52]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "T_2"
          Position                [40, 93, 70, 107]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [40, 135, 70, 165]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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                   [8, 3]
          Position                [112, 320, 428, 445]
          Orientation             "down"
          NamePlacement           "alternate"
          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\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                    "m"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "c"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "alpha_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "alpha_2"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_2"
              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 basic_components 2"
              Ports                   [8, 4]
              Position                [180, 105, 230, 285]
              FunctionName            "sf_sfun"
              PortCounts              "[8 4]"
              Port {
                PortNumber              2
                Name                    "Q_dot_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "Q_dot_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "d_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 296, 480, 314]
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_1"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot_2"
              Position                [460, 136, 480, 154]
              Port                    "2"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "d_T"
              Position                [460, 171, 480, 189]
              Port                    "3"
              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                "A"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "m"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "c"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "alpha_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "alpha_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "T_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "T_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              Name                    "Q_dot_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "Q_dot_1"
              DstPort                 1
            }
            Line {
              Name                    "Q_dot_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 3
              DstBlock                "Q_dot_2"
              DstPort                 1
            }
            Line {
              Name                    "d_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "d_T"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator"
          Ports                   [1, 1]
          Position                [360, 475, 390, 505]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          InitialCondition        "T_init"
          IgnoreLimit             off
          Port {
            PortNumber              1
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Constant
          Name                    "alpha_1"
          Position                [40, 233, 95, 267]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "alpha_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                    "alpha_2"
          Position                [40, 268, 95, 302]
          ForegroundColor         "green"
          ShowName                off
          Value                   "alpha_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                    "c"
          Position                [40, 195, 70, 225]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "c"
          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"
          Position                [40, 165, 70, 195]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m"
          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                    "Q_dot_1"
          Position                [158, 535, 172, 565]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Q_dot_2"
          Position                [263, 535, 277, 565]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "T"
          Position                [368, 535, 382, 565]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "3"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "T_1"
          SrcPort                 1
          Points                  [295, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          Labels                  [1, 0]
          SrcBlock                "alpha_1"
          SrcPort                 1
          Points                  [150, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "T_2"
          SrcPort                 1
          Points                  [335, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "A"
          SrcPort                 1
          Points                  [55, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 0]
          DstBlock                "Q_dot_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Q_dot_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "m"
          SrcPort                 1
          Points                  [95, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "c"
          SrcPort                 1
          Points                  [135, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          DstBlock                "Integrator"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator"
          SrcPort                 1
          Points                  [0, 0]
          Branch {
            Points                  [70, 0; 0, -230; -115, 0]
            DstBlock                "Embedded\nMATLA Function"
            DstPort                 6
          }
          Branch {
            DstBlock                "T"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "alpha_2"
          SrcPort                 1
          Points                  [190, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "HR_Rad_"
      Ports                   [1, 1]
      Position                [260, 927, 375, 983]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Stefan Boltzmann Constant  [W/m² K² K²]|Emissiv"
"ity|Surface [m²]|Surface Temperature [K]"
      MaskStyleString         "popup(5.67*10^-8),edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString        "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString       "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables           "sigma=@1;episilon=@2;A=@3;T_s=@4;"
      MaskDisplay             "plot([0],[0],[0.2 0.25 0.3 0.35 0.4 0.45 0.5],["
"0.5 0.5 0.75 0.5 0.25 0.5 0.5],[0],[0])\ntext(0.4,0.15,'Rad')\nport_label('in"
"put',1,'T')\nport_label('output',1,'Q_dot')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "5.67*10^-8|NaN|NaN|NaN"
      MaskTabNameString       ",,,"
      System {
        Name                    "HR_Rad_"
        Location                [4, 268, 1012, 990]
        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                [60, 43, 90, 57]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [60, 150, 90, 180]
          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                   [5, 1]
          Position                [117, 230, 433, 355]
          Orientation             "down"
          NamePlacement           "alternate"
          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\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                    "sigma"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "epsilon"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "A"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_s"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 220, 320, 260]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 4"
              Ports                   [5, 2]
              Position                [180, 100, 230, 220]
              FunctionName            "sf_sfun"
              PortCounts              "[5 2]"
              Port {
                PortNumber              2
                Name                    "Q_dot"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 231, 480, 249]
            }
            Block {
              BlockType               Outport
              Name                    "Q_dot"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 110]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "sigma"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "epsilon"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "A"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "T_s"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              Name                    "Q_dot"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "Q_dot"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "T_s"
          Position                [60, 185, 90, 215]
          ForegroundColor         "green"
          ShowName                off
          Value                   "T_s"
          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                    "epsilon"
          Position                [60, 114, 110, 146]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "epsilon"
          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                    "sigma"
          Position                [60, 80, 90, 110]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "sigma"
          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                    "Q_dot"
          Position                [268, 380, 282, 410]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "T"
          SrcPort                 1
          Points                  [310, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "sigma"
          SrcPort                 1
          Points                  [50, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Q_dot"
          DstPort                 1
        }
        Line {
          SrcBlock                "epsilon"
          SrcPort                 1
          Points                  [95, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "T_s"
          SrcPort                 1
          Points                  [245, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "A"
          SrcPort                 1
          Points                  [180, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Node_2D_"
      Ports                   [2, 1]
      Position                [25, 352, 105, 408]
      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 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"patch([1 2 2 1 1],[1 1 2 2 1], [0 0 0])\nport_label('input',1,'1')\nport_labe"
"l('input',2,'2')\nport_label('output',1,'2D')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Node_2D_"
        Location                [6, 82, 1002, 732]
        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                [235, 108, 265, 122]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [235, 233, 265, 247]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [620, 657, 625, 778]
          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                [205, 56, 210, 174]
          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                [205, 181, 210, 299]
          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                [40, 768, 140, 792]
          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                   [21, 6]
          Position                [155, 360, 335, 800]
          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                    "Delta_p_threshold"
              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 basic_components 5"
              Ports                   [21, 7]
              Position                [180, 120, 230, 560]
              FunctionName            "sf_sfun"
              PortCounts              "[21 7]"
              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"
              }
              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               Terminator
              Name                    " Terminator "
              Position                [460, 571, 480, 589]
            }
            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
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas"
              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"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 420]
              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                "Delta_p_threshold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 21
            }
            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
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [360, 378, 395, 412]
          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                [360, 453, 395, 487]
          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                [360, 528, 395, 562]
          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                [360, 603, 395, 637]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay4"
          Position                [360, 678, 395, 712]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay5"
          Position                [360, 753, 395, 787]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [425, 795, 455, 825]
          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                [425, 830, 455, 860]
          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                [650, 713, 680, 727]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 3
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 2
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 1
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 4
          DstBlock                "Unit Delay3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 5
          DstBlock                "Unit Delay4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function"
          SrcPort                 6
          DstBlock                "Unit Delay5"
          DstPort                 1
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [35, 0]
          Branch {
            Points                  [55, 0; 0, 270]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
          Branch {
            Points                  [0, -75; -295, 0]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 1
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [40, 0]
          Branch {
            Points                  [65, 0; 0, 210]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
          Branch {
            Points                  [0, -145; -305, 0; 0, 75]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [45, 0]
          Branch {
            Points                  [75, 0; 0, 150]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
          Branch {
            Points                  [0, -215; -315, 0; 0, 90]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [45, 0; 0, -120]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [60, 0; 0, -100]
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay4"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [0, -355; -335, 0; 0, 120]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 5
          }
          Branch {
            Points                  [35, 0; 0, 60]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay5"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [0, -425; -340, 0; 0, 135]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 6
          }
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay3"
          SrcPort                 1
          Points                  [50, 0]
          Branch {
            Points                  [0, -285; -325, 0; 0, 105]
            DstBlock                "Embedded_MATLAB_Function"
            DstPort                 4
          }
          Branch {
            Points                  [25, 0; 0, 120]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-95, 0; 0, 430]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 7
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-100, 0; 0, 435]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 8
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-105, 0; 0, 440]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 9
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-110, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 10
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-115, 0; 0, 450]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 11
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [-120, 0; 0, 455]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 7
          Points                  [-125, 0; 0, 460]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 13
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [-130, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 14
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [-135, 0; 0, 450]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 15
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [-140, 0; 0, 455]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 16
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [-145, 0; 0, 460]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 17
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [-150, 0; 0, 465]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 18
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [-155, 0; 0, 470]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 7
          Points                  [-160, 0; 0, 475]
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 20
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "Delta_p_threshold"
          SrcPort                 1
          DstBlock                "Embedded_MATLAB_Function"
          DstPort                 21
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Node_3D_"
      Ports                   [3, 1]
      Position                [25, 422, 105, 478]
      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 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"patch([1 2 2 1 1],[1 1 2 2 1], [0 0 0])\nport_label('input',1,'1')\nport_labe"
"l('input',2,'2')\nport_label('input',3,'3')\nport_label('output',1,'3D')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Node_3D_"
        Location                [-22, 121, 974, 771]
        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 basic_components 1"
              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"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              4
                Name                    "T"
                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               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"
              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
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas"
              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"
              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"
              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
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq"
              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                    "Node_4D_"
      Ports                   [4, 1]
      Position                [25, 494, 105, 551]
      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 2 2 1 1],[1 1 2 2 1],[3],[3])\n"
"patch([1 2 2 1 1],[1 1 2 2 1], [0 0 0])\nport_label('input',1,'1')\nport_labe"
"l('input',2,'2')\nport_label('input',3,'3')\nport_label('input',4,'4')\nport_"
"label('output',1,'4D')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Node_4D_"
        Location                [2, 82, 998, 732]
        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                [310, 98, 340, 112]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [310, 223, 340, 237]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [310, 348, 340, 362]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_4"
          Position                [310, 473, 340, 487]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [695, 977, 700, 1098]
          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                [280, 46, 285, 164]
          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                [280, 296, 285, 414]
          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\nSelector3"
          Ports                   [1, 7]
          Position                [280, 421, 285, 539]
          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                [280, 171, 285, 289]
          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                [45, 1118, 145, 1142]
          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\nMATLA Function1"
          Ports                   [35, 6]
          Position                [230, 613, 410, 1137]
          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\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_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                    "p_in_4"
              Position                [20, 1071, 40, 1089]
              Port                    "28"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_4"
              Position                [20, 1106, 40, 1124]
              Port                    "29"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_4"
              Position                [20, 1146, 40, 1164]
              Port                    "30"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_4"
              Position                [20, 1181, 40, 1199]
              Port                    "31"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_4"
              Position                [20, 1216, 40, 1234]
              Port                    "32"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_4"
              Position                [20, 1251, 40, 1269]
              Port                    "33"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_4"
              Position                [20, 1286, 40, 1304]
              Port                    "34"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Delta_p_threshold"
              Position                [20, 1326, 40, 1344]
              Port                    "35"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 840, 320, 880]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 6"
              Ports                   [35, 7]
              Position                [180, 120, 230, 840]
              FunctionName            "sf_sfun"
              PortCounts              "[35 7]"
              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"
              }
              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               Terminator
              Name                    " Terminator "
              Position                [460, 851, 480, 869]
            }
            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
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas"
              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"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 680]
              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                "p_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 28
            }
            Line {
              SrcBlock                "rho_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 29
            }
            Line {
              SrcBlock                "T_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 30
            }
            Line {
              SrcBlock                "m_dot_air_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 31
            }
            Line {
              SrcBlock                "x_H2O_gas_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 32
            }
            Line {
              SrcBlock                "x_CO2_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 33
            }
            Line {
              SrcBlock                "x_H2O_liq_in_4"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 34
            }
            Line {
              SrcBlock                "Delta_p_threshold"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 35
            }
            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
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay"
          Position                [435, 648, 470, 682]
          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                [435, 733, 470, 767]
          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                [435, 818, 470, 852]
          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                [435, 903, 470, 937]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay4"
          Position                [435, 988, 470, 1022]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               UnitDelay
          Name                    "Unit Delay5"
          Position                [435, 1073, 470, 1107]
          ShowName                off
          SampleTime              "-1"
          Port {
            PortNumber              1
            Name                    "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [505, 1115, 535, 1145]
          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                [505, 1150, 535, 1180]
          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                [725, 1033, 755, 1047]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          DstBlock                "Unit Delay2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          DstBlock                "Unit Delay1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          DstBlock                "Unit Delay"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          DstBlock                "Unit Delay3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          DstBlock                "Unit Delay4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 6
          DstBlock                "Unit Delay5"
          DstPort                 1
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay"
          SrcPort                 1
          Points                  [35, 0]
          Branch {
            Points                  [55, 0; 0, 320]
            DstBlock                "Bus\nCreator1"
            DstPort                 1
          }
          Branch {
            Points                  [0, -100; -295, 0]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 1
          }
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay1"
          SrcPort                 1
          Points                  [40, 0]
          Branch {
            Points                  [65, 0; 0, 250]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
          Branch {
            Points                  [0, -180; -305, 0; 0, 65]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay2"
          SrcPort                 1
          Points                  [45, 0]
          Branch {
            Points                  [75, 0; 0, 180]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
          Branch {
            Points                  [0, -260; -315, 0; 0, 75]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 3
          }
        }
        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                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [55, 0; 0, -100]
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay4"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [0, -420; -335, 0; 0, 95]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 5
          }
          Branch {
            Points                  [35, 0; 0, 70]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay5"
          SrcPort                 1
          Points                  [60, 0]
          Branch {
            Points                  [0, -500; -345, 0; 0, 105]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 6
          }
          Branch {
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Unit Delay3"
          SrcPort                 1
          Points                  [50, 0]
          Branch {
            Points                  [0, -340; -325, 0; 0, 85]
            DstBlock                "Embedded\nMATLA Function1"
            DstPort                 4
          }
          Branch {
            Points                  [25, 0; 0, 140]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
        }
        Line {
          SrcBlock                "In_3"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-95, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 7
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-100, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 8
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-105, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 9
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-110, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 10
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-115, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 11
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [-120, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 7
          Points                  [-125, 0; 0, 650]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 13
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 1
          Points                  [-130, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 14
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 2
          Points                  [-135, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 15
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 3
          Points                  [-140, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 16
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 4
          Points                  [-145, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 17
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 5
          Points                  [-150, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 18
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 6
          Points                  [-155, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector4"
          SrcPort                 7
          Points                  [-160, 0; 0, 630]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 20
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-165, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 21
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-170, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 22
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-175, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 23
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-180, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 24
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-185, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 25
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 6
          Points                  [-190, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 26
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 7
          Points                  [-195, 0; 0, 610]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 27
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_4"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [-200, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 28
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [-205, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 29
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [-210, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 30
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [-215, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 31
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [-220, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 32
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [-225, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 33
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 7
          Points                  [-230, 0; 0, 590]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 34
        }
        Line {
          SrcBlock                "Delta_p_threshold"
          SrcPort                 1
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 35
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "PT1"
      Ports                   [1, 1]
      Position                [465, 494, 515, 506]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Initial Value|Response Time [s]|Start Time [s]"
      MaskStyleString         "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString        "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString       "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables           "x_init=@1;tau=@2;t_0=@3;"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "PT1"
        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                [25, 38, 55, 52]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Sum
          Name                    "Add2"
          Ports                   [2, 1]
          Position                [195, 77, 225, 108]
          ShowName                off
          Inputs                  "+-"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Sum
          Name                    "Add3"
          Ports                   [2, 1]
          Position                [350, 87, 380, 118]
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Clock
          Name                    "Clock2"
          Position                [25, 75, 45, 95]
          ShowName                off
          Decimation              "1"
        }
        Block {
          BlockType               TransferFcn
          Name                    "PT_1"
          Position                [255, 77, 315, 113]
          Denominator             "[tau 1]"
        }
        Block {
          BlockType               Switch
          Name                    "Switch2"
          Position                [120, 70, 150, 100]
          ShowName                off
          Criteria                "u2 > Threshold"
          Threshold               "t_0"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "x_init"
          Position                [25, 115, 70, 145]
          Value                   "x_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                [405, 98, 435, 112]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Add2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "PT_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "PT_1"
          SrcPort                 1
          DstBlock                "Add3"
          DstPort                 1
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [15, 0; 0, 30]
          DstBlock                "Switch2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Clock2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Switch2"
          DstPort                 2
        }
        Line {
          SrcBlock                "x_init"
          SrcPort                 1
          Points                  [0, 0]
          Branch {
            Points                  [0, -35]
            DstBlock                "Switch2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 0; 105, 0]
            Branch {
              DstBlock                "Add2"
              DstPort                 2
            }
            Branch {
              Points                  [155, 0]
              DstBlock                "Add3"
              DstPort                 2
            }
          }
        }
        Line {
          SrcBlock                "Switch2"
          SrcPort                 1
          DstBlock                "Add2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Add3"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "T-Sensor_"
      Ports                   [1, 1]
      Position                [445, 578, 535, 612]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Initial Parameter: Measured Variable [SI-Unit]|"
"Sensor Time Constant [s]|Sensor Dead Time [s]|Sensor Noise: on: 1, off: 0|Sen"
"sor Noise Power|Sensor Error: on: 1, off: 0|Constant Sensor Value [SI-Unit]|T"
"ime Dependant Sensor Value [SI-Unit]: 0: No Time Series is available|Sensor O"
"ffset: on: 1, off: 0|Constant Sensor Offset [SI-Unit]|Time Dependant Sensor O"
"ffset [SI-Unit]: 0: No Time Series is available"
      MaskStyleString         "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||||"
      MaskEnableString        "on,on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString       "on,on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,"
      MaskVariables           "x_init=@1;tau=@2;tau_dead=@3;noise=@4;noise_pow"
"er=@5;err=@6;Constant_err=@7;time_series_err=@8;offset=@9;Constant_offset=@10"
";time_series_offset=@11;"
      MaskInitialization      "err_time = 1;\nif length(time_series_err) <= 1"
"\n   err_time             =  0;\n   time_series_err(1,1) = -1;\n   time_serie"
"s_err(1,2) = -1;\n   time_series_err(2,1) =  1;\n   time_series_err(2,2) = -1"
";\nend\noffset_time = 1;\nif length(time_series_offset) <= 1\n   offset_time "
"         =  0;\n   time_series_offset(1,1) = -1;\n   time_series_offset(1,2) "
"= -1;\n   time_series_offset(2,1) =  1;\n   time_series_offset(2,2) = -1;\nen"
"d"
      MaskDisplay             "disp('Sensor','texmode','on')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|0.001|NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,,,,,,"
      System {
        Name                    "T-Sensor_"
        Location                [2, 82, 1014, 715]
        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                [30, 413, 60, 427]
          ForegroundColor         "green"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Sum
          Name                    "Add"
          Ports                   [2, 1]
          Position                [475, 267, 505, 298]
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Sum
          Name                    "Add1"
          Ports                   [2, 1]
          Position                [145, 412, 175, 443]
          ShowName                off
          Inputs                  "+-"
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Sum
          Name                    "Add2"
          Ports                   [2, 1]
          Position                [300, 422, 330, 453]
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Sum
          Name                    "Add3"
          Ports                   [2, 1]
          Position                [1155, 312, 1185, 343]
          ShowName                off
          InputSameDT             off
          OutDataTypeMode         "Inherit via internal rule"
          OutScaling              "2^-10"
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Reference
          Name                    "Band-Limited\nWhite Noise"
          Ports                   [0, 1]
          Position                [370, 260, 400, 290]
          SourceBlock             "simulink/Sources/Band-Limited\nWhite Noise"
          SourceType              "Band-Limited White Noise."
          ShowPortLabels          on
          SystemSampleTime        "-1"
          FunctionWithSeparateData off
          RTWMemSecFuncInitTerm   "Inherit from model"
          RTWMemSecFuncExecute    "Inherit from model"
          RTWMemSecDataConstants  "Inherit from model"
          RTWMemSecDataInternal   "Inherit from model"
          RTWMemSecDataParameters "Inherit from model"
          Cov                     "[noise_power]"
          Ts                      "0.1"
          seed                    "[0]"
          VectorParams1D          on
        }
        Block {
          BlockType               Clock
          Name                    "Clock"
          Position                [605, 120, 625, 140]
          ShowName                off
          Decimation              "10"
        }
        Block {
          BlockType               Clock
          Name                    "Clock1"
          Position                [860, 40, 880, 60]
          ShowName                off
          Decimation              "10"
        }
        Block {
          BlockType               Constant
          Name                    "Constant_err"
          Position                [635, 228, 710, 262]
          Value                   "Constant_err"
          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                    "Constant_offset"
          Position                [890, 148, 965, 182]
          Value                   "Constant_offset"
          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               TransportDelay
          Name                    "Dead_Time"
          Position                [370, 425, 400, 455]
          DelayTime               "tau_dead"
          InitialOutput           "293.15"
        }
        Block {
          BlockType               TransferFcn
          Name                    "PT_1"
          Position                [205, 412, 265, 448]
          Denominator             "[tau 1]"
        }
        Block {
          BlockType               Switch
          Name                    "Switch"
          Position                [545, 330, 575, 360]
          ShowName                off
          Criteria                "u2 > Threshold"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Switch
          Name                    "Switch1"
          Position                [840, 320, 870, 350]
          ShowName                off
          Criteria                "u2 > Threshold"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Switch
          Name                    "Switch2"
          Position                [770, 220, 800, 250]
          ShowName                off
          Criteria                "u2 > Threshold"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Switch
          Name                    "Switch3"
          Position                [1095, 240, 1125, 270]
          ShowName                off
          Criteria                "u2 > Threshold"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Switch
          Name                    "Switch4"
          Position                [1025, 140, 1055, 170]
          ShowName                off
          Criteria                "u2 > Threshold"
          InputSameDT             off
          SaturateOnIntegerOverflow off
        }
        Block {
          BlockType               Constant
          Name                    "err"
          Position                [770, 295, 800, 325]
          Value                   "err"
          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                    "err_time"
          Position                [635, 178, 710, 212]
          Value                   "err_time"
          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                    "noise"
          Position                [370, 330, 400, 360]
          Value                   "noise"
          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                    "offset"
          Position                [1025, 215, 1055, 245]
          Value                   "offset"
          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                    "offset_time"
          Position                [890, 98, 965, 132]
          Value                   "offset_time"
          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                    "offset_zero"
          Position                [1025, 270, 1055, 300]
          ForegroundColor         "red"
          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"
        }
        Block {
          BlockType               Lookup
          Name                    "time_series_err"
          Position                [660, 105, 710, 155]
          InputValues             "time_series_err(:,1)"
          OutputValues            "time_series_err(:,2)"
          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               Lookup
          Name                    "time_series_offset"
          Position                [915, 25, 965, 75]
          InputValues             "time_series_offset(:,1)"
          OutputValues            "time_series_offset(:,2)"
          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               Constant
          Name                    "x_init"
          Position                [30, 453, 120, 487]
          Value                   "x_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                [1210, 323, 1240, 337]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "noise"
          SrcPort                 1
          DstBlock                "Switch"
          DstPort                 2
        }
        Line {
          SrcBlock                "Band-Limited\nWhite Noise"
          SrcPort                 1
          DstBlock                "Add"
          DstPort                 1
        }
        Line {
          SrcBlock                "Add"
          SrcPort                 1
          Points                  [15, 0; 0, 50]
          DstBlock                "Switch"
          DstPort                 1
        }
        Line {
          SrcBlock                "Switch"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Switch1"
          DstPort                 3
        }
        Line {
          SrcBlock                "err"
          SrcPort                 1
          Points                  [0, 25]
          DstBlock                "Switch1"
          DstPort                 2
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Add1"
          DstPort                 1
        }
        Line {
          SrcBlock                "x_init"
          SrcPort                 1
          Points                  [0, 0; 5, 0]
          Branch {
            DstBlock                "Add1"
            DstPort                 2
          }
          Branch {
            Points                  [155, 0]
            DstBlock                "Add2"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "Add1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "PT_1"
          DstPort                 1
        }
        Line {
          SrcBlock                "PT_1"
          SrcPort                 1
          DstBlock                "Add2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Clock"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "time_series_err"
          DstPort                 1
        }
        Line {
          SrcBlock                "Constant_err"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Switch2"
          DstPort                 3
        }
        Line {
          SrcBlock                "err_time"
          SrcPort                 1
          Points                  [15, 0; 0, 40]
          DstBlock                "Switch2"
          DstPort                 2
        }
        Line {
          SrcBlock                "time_series_err"
          SrcPort                 1
          Points                  [30, 0; 0, 95]
          DstBlock                "Switch2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Switch2"
          SrcPort                 1
          Points                  [15, 0; 0, 90]
          DstBlock                "Switch1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Add2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Dead_Time"
          DstPort                 1
        }
        Line {
          SrcBlock                "Dead_Time"
          SrcPort                 1
          Points                  [55, 0; 0, -85]
          Branch {
            DstBlock                "Switch"
            DstPort                 3
          }
          Branch {
            DstBlock                "Add"
            DstPort                 2
          }
        }
        Line {
          SrcBlock                "offset"
          SrcPort                 1
          Points                  [0, 25]
          DstBlock                "Switch3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Clock1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "time_series_offset"
          DstPort                 1
        }
        Line {
          SrcBlock                "Constant_offset"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Switch4"
          DstPort                 3
        }
        Line {
          SrcBlock                "offset_time"
          SrcPort                 1
          Points                  [15, 0; 0, 40]
          DstBlock                "Switch4"
          DstPort                 2
        }
        Line {
          SrcBlock                "time_series_offset"
          SrcPort                 1
          Points                  [30, 0; 0, 95]
          DstBlock                "Switch4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Switch4"
          SrcPort                 1
          Points                  [15, 0; 0, 90]
          DstBlock                "Switch3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Switch3"
          SrcPort                 1
          Points                  [10, 0]
          DstBlock                "Add3"
          DstPort                 1
        }
        Line {
          SrcBlock                "offset_zero"
          SrcPort                 1
          Points                  [0, -20]
          DstBlock                "Switch3"
          DstPort                 3
        }
        Line {
          SrcBlock                "Switch1"
          SrcPort                 1
          DstBlock                "Add3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Add3"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Tee_"
      Ports                   [2, 1]
      Position                [25, 575, 105, 615]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskDisplay             "plot([-5],[0.5],[0 0 0 2.5],[2 1 1.5 1.5],[7],["
"2.5])\nport_label('input',1,'In_1')\nport_label('input',2,'In_2')\nport_label"
"('output',1,'Out')\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      System {
        Name                    "Tee_"
        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_1"
          Position                [25, 163, 55, 177]
          ForegroundColor         "green"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [25, 668, 55, 682]
          ForegroundColor         "green"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [520, 148, 525, 702]
          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, 525, 85, 820]
          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\nSelector16"
          Ports                   [1, 8]
          Position                [80, 20, 85, 315]
          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 Function"
          Ports                   [16, 8]
          Position                [290, 133, 450, 712]
          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                    "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"
          }
          Port {
            PortNumber              4
            Name                    "m_air"
            PropagatedSignals       "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            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                    "p_in_1"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_in_1"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_air_in_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_1"
              Position                [20, 246, 40, 264]
              Port                    "5"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_1"
              Position                [20, 281, 40, 299]
              Port                    "6"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_2"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              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_air_in_2"
              Position                [20, 496, 40, 514]
              Port                    "12"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "m_dot_air_in_2"
              Position                [20, 531, 40, 549]
              Port                    "13"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_gas_in_2"
              Position                [20, 566, 40, 584]
              Port                    "14"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_2"
              Position                [20, 606, 40, 624]
              Port                    "15"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_2"
              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 basic_components 1"
"5"
              Ports                   [16, 9]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 9]"
              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"
              }
              Port {
                PortNumber              5
                Name                    "m_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              6
                Name                    "m_dot_air"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              7
                Name                    "x_H2O_gas"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "x_CO2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "x_H2O_liq"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            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
            }
            Block {
              BlockType               Outport
              Name                    "m_air"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_gas"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 330]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p_in_1"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "m_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "m_dot_air_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "p_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "T_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "m_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 12
            }
            Line {
              SrcBlock                "m_dot_air_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 13
            }
            Line {
              SrcBlock                "x_H2O_gas_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 14
            }
            Line {
              SrcBlock                "x_CO2_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 15
            }
            Line {
              SrcBlock                "x_H2O_liq_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            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
            }
            Line {
              Name                    "m_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "m_air"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "m_dot_air"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [550, 418, 580, 432]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 8
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 7
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 6
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 8
          Points                  [125, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 16
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 7
          Points                  [120, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 15
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [115, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 14
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [110, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 13
        }
        Line {
          Name                    "<m_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [105, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 12
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [100, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 11
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [95, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 10
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [90, 0; 0, -110]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 8
          Points                  [150, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 7
          Points                  [155, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 6
          Points                  [160, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 6
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 5
          Points                  [165, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Name                    "<m_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 4
          Points                  [170, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 3
          Points                  [175, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 2
          Points                  [180, 0; 0, 115]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector16"
          SrcPort                 1
          Points                  [185, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector16"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Thermal_Capacity_"
      Ports                   [2, 1]
      Position                [260, 766, 375, 824]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Mass [kg]|Specific Heat Capacity [J/kg/K]|Initi"
"al Parameter: Temperature [K]"
      MaskStyleString         "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString        "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString       "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables           "m=@1;c=@2;T_init=@3;"
      MaskDisplay             "plot([0],[0],[0.4 0.45 0.5 0.55 0.6 0.65 0.7],["
"0.5 0.5 0.75 0.5 0.25 0.5 0.5],[0],[0])\ntext(0.6,0.15,'TC')\nport_label('inp"
"ut',1,'Q_dot_1')\nport_label('input',2,'Q_dot_2')\nport_label('output',1,'T')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN|NaN"
      MaskTabNameString       ",,"
      System {
        Name                    "Thermal_Capacity_"
        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                    "Q_dot_1"
          Position                [40, 38, 70, 52]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot_2"
          Position                [40, 93, 70, 107]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLA Function"
          Ports                   [4, 1]
          Position                [112, 320, 428, 445]
          Orientation             "down"
          NamePlacement           "alternate"
          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\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"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "c"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_in_1"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Q_dot_in_2"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 205, 320, 245]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 9"
"8"
              Ports                   [4, 2]
              Position                [180, 102, 230, 203]
              FunctionName            "sf_sfun"
              PortCounts              "[4 2]"
              Port {
                PortNumber              2
                Name                    "d_T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 216, 480, 234]
            }
            Block {
              BlockType               Outport
              Name                    "d_T"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 95]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "m"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "c"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "Q_dot_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "Q_dot_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              Name                    "d_T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "d_T"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [1, 1]
          Position                [255, 470, 285, 500]
          Orientation             "down"
          NamePlacement           "alternate"
          ShowName                off
          InitialCondition        "T_init"
          IgnoreLimit             off
          Port {
            PortNumber              1
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Constant
          Name                    "c"
          Position                [40, 195, 70, 225]
          ForegroundColor         "green"
          ShowName                off
          Value                   "c"
          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"
          Position                [40, 160, 70, 190]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "m"
          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                    "T"
          Position                [263, 525, 277, 555]
          Orientation             "down"
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Q_dot_1"
          SrcPort                 1
          Points                  [235, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "Q_dot_2"
          SrcPort                 1
          Points                  [315, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          SrcBlock                "m"
          SrcPort                 1
          Points                  [75, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "c"
          SrcPort                 1
          Points                  [155, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator1"
          SrcPort                 1
          DstBlock                "T"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Valve_"
      Ports                   [3, 2]
      Position                [160, 437, 240, 493]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Surface [m²]|Minor Loss Coefficient|Direction: "
"0:1->2, 1:2->1"
      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;zeta=@2;Dir=@3;"
      MaskDisplay             "plot([.5],[.5],[1 2],[1 2],[2.5],[2.5])\nport_l"
"abel('input',1,'1')\nport_label('input',2,'2')\nport_label('input',3,'beta')"
"\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                    "Valve_"
        Location                [2, 82, 998, 752]
        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                [25, 83, 55, 97]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [25, 188, 55, 202]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "beta"
          Position                [25, 258, 55, 272]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [80, 295, 110, 325]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          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               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [422, 705, 543, 710]
          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                [207, 705, 328, 710]
          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, 6]
          Position                [80, 142, 85, 243]
          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\nSelector3"
          Ports                   [1, 6]
          Position                [80, 37, 85, 138]
          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                    "Dir"
          Position                [80, 354, 110, 386]
          ForegroundColor         "green"
          ShowName                off
          Value                   "Dir"
          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                   [16, 9]
          Position                [209, 440, 646, 565]
          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                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "p"
            PropagatedSignals       "p_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "p"
            PropagatedSignals       "p_2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              9
            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                    "beta"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "zeta"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              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                    "x_H2O_gas_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_2"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_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                    "Dir"
              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 basic_components 1"
"03"
              Ports                   [16, 10]
              Position                [180, 120, 230, 460]
              FunctionName            "sf_sfun"
              PortCounts              "[16 10]"
              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"
              }
              Port {
                PortNumber              7
                Name                    "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "m_dot_air_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 471, 480, 489]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_1"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_1"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_2"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_2"
              Position                [460, 386, 480, 404]
              Port                    "9"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 345]
              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                "beta"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "zeta"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "p_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "p_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "T_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                "Dir"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 16
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
            Line {
              Name                    "p_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "p_1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "m_dot_air_1"
              DstPort                 1
            }
            Line {
              Name                    "p_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "p_2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "m_dot_air_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [135, 590, 165, 620]
          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                    "zeta"
          Position                [80, 324, 110, 356]
          ForegroundColor         "green"
          ShowName                off
          Value                   "zeta"
          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_1"
          Position                [263, 735, 277, 765]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [478, 735, 492, 765]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "beta"
          SrcPort                 1
          Points                  [205, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 2
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "A"
          SrcPort                 1
          Points                  [125, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "zeta"
          SrcPort                 1
          Points                  [175, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 3
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [225, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 4
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [250, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 5
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [275, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 6
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [300, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 7
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [325, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 8
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [350, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 9
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [375, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 10
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [400, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 11
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [425, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [450, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 13
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [475, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 6
          Points                  [500, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 15
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 1
          Points                  [0, 15]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 2
          }
          Branch {
            Points                  [215, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 2
          Points                  [0, 25]
          Branch {
            Points                  [-35, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 3
          }
          Branch {
            Points                  [180, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 90, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 4
          }
          Branch {
            Points                  [215, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 3
          Points                  [0, 45]
          Branch {
            Points                  [-40, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [175, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 6
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 4
          Points                  [0, 55]
          Branch {
            Points                  [-75, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
          Branch {
            Points                  [140, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 5
          Points                  [0, 65]
          Branch {
            Points                  [-110, 0]
            DstBlock                "Bus\nCreator2"
            DstPort                 8
          }
          Branch {
            Points                  [105, 0]
            DstBlock                "Bus\nCreator1"
            DstPort                 8
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 6
          Points                  [0, 75; -265, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 8
          Points                  [0, 85; -150, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 7
          Points                  [0, 95; -255, 0]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function"
          SrcPort                 9
          Points                  [0, 105; -140, 0]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Dir"
          SrcPort                 1
          Points                  [500, 0]
          DstBlock                "Embedded\nMATLA Function"
          DstPort                 16
        }
        Annotation {
          Position                [425, 556]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Valve_Comp_"
      Ports                   [3, 2]
      Position                [160, 515, 240, 575]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   on
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Surface [m²]|Maximum Mach Number (in general Ma"
"_max=1)"
      MaskStyleString         "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString        "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString       "on,on"
      MaskVarAliasString      ","
      MaskVariables           "A=@1;Ma_max=@2;"
      MaskDisplay             "plot([.5],[.5],[1 2],[1 2],[2.5],[2.5])\nport_l"
"abel('input',1,'1')\nport_label('input',2,'2')\nport_label('input',3,'beta')"
"\nport_label('output',1,'1')\nport_label('output',2,'Comp 2')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN"
      MaskTabNameString       ","
      System {
        Name                    "Valve_Comp_"
        Location                [2, 82, 998, 752]
        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                [35, 83, 65, 97]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [35, 188, 65, 202]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "beta"
          Position                [35, 283, 65, 297]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Constant
          Name                    "A"
          Position                [90, 254, 140, 286]
          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               BusCreator
          Name                    "Bus\nCreator3"
          Ports                   [8, 1]
          Position                [432, 705, 553, 710]
          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                [217, 705, 338, 710]
          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                [90, 142, 95, 243]
          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\nSelector5"
          Ports                   [1, 6]
          Position                [90, 37, 95, 138]
          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 Function1"
          Ports                   [15, 9]
          Position                [219, 380, 661, 565]
          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                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              4
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              6
            Name                    "p"
            PropagatedSignals       "p_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              7
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_1"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              8
            Name                    "p"
            PropagatedSignals       "p_2"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              9
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air_2"
            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                    "A"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "beta"
              Position                [20, 136, 40, 154]
              Port                    "2"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "Ma_max"
              Position                [20, 171, 40, 189]
              Port                    "3"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_1"
              Position                [20, 206, 40, 224]
              Port                    "4"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_1"
              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                    "x_H2O_gas_in_1"
              Position                [20, 316, 40, 334]
              Port                    "7"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_CO2_in_1"
              Position                [20, 351, 40, 369]
              Port                    "8"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "x_H2O_liq_in_1"
              Position                [20, 386, 40, 404]
              Port                    "9"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "p_in_2"
              Position                [20, 426, 40, 444]
              Port                    "10"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho_in_2"
              Position                [20, 461, 40, 479]
              Port                    "11"
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "T_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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 440, 320, 480]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 1"
"9"
              Ports                   [15, 10]
              Position                [180, 120, 230, 440]
              FunctionName            "sf_sfun"
              PortCounts              "[15 10]"
              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"
              }
              Port {
                PortNumber              7
                Name                    "p_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              8
                Name                    "m_dot_air_1"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              9
                Name                    "p_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              10
                Name                    "m_dot_air_2"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 451, 480, 469]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_1"
              Position                [460, 281, 480, 299]
              Port                    "6"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_1"
              Position                [460, 316, 480, 334]
              Port                    "7"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "p_2"
              Position                [460, 351, 480, 369]
              Port                    "8"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "m_dot_air_2"
              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                "A"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "beta"
              SrcPort                 1
              Points                  [120, 0]
              DstBlock                " SFunction "
              DstPort                 2
            }
            Line {
              SrcBlock                "Ma_max"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 3
            }
            Line {
              SrcBlock                "p_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 4
            }
            Line {
              SrcBlock                "rho_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 5
            }
            Line {
              SrcBlock                "T_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            Line {
              SrcBlock                "x_H2O_gas_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 7
            }
            Line {
              SrcBlock                "x_CO2_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 8
            }
            Line {
              SrcBlock                "x_H2O_liq_in_1"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 9
            }
            Line {
              SrcBlock                "p_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 10
            }
            Line {
              SrcBlock                "rho_in_2"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 11
            }
            Line {
              SrcBlock                "T_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 {
              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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
            Line {
              Name                    "p_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 7
              DstBlock                "p_1"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_1"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 8
              DstBlock                "m_dot_air_1"
              DstPort                 1
            }
            Line {
              Name                    "p_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 9
              DstBlock                "p_2"
              DstPort                 1
            }
            Line {
              Name                    "m_dot_air_2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 10
              DstBlock                "m_dot_air_2"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "Ma_max"
          Position                [90, 294, 140, 326]
          ForegroundColor         "green"
          ShowName                off
          Value                   "Ma_max"
          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                [145, 590, 175, 620]
          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                    "Out_1"
          Position                [273, 735, 287, 765]
          Orientation             "down"
          ForegroundColor         "blue"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Block {
          BlockType               Outport
          Name                    "Out_2"
          Position                [488, 735, 502, 765]
          Orientation             "down"
          ForegroundColor         "blue"
          Port                    "2"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "beta"
          SrcPort                 1
          Points                  [190, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 2
        }
        Line {
          Labels                  [2, 0]
          SrcBlock                "A"
          SrcPort                 1
          Points                  [85, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector5"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator3"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator4"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out_1"
          DstPort                 1
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [220, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 4
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [250, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 5
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [280, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 6
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [310, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 7
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [340, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 8
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 6
          Points                  [370, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 9
        }
        Line {
          Name                    "<p>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [400, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 10
        }
        Line {
          Name                    "<rho>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [430, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 11
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [460, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [490, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 13
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [520, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 6
          Points                  [550, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 15
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 1
          Points                  [0, 15]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 2
          }
          Branch {
            Points                  [215, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 2
          Points                  [0, 25]
          Branch {
            Points                  [-35, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 3
          }
          Branch {
            Points                  [180, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [0, 0; 90, 0]
          Branch {
            DstBlock                "Bus\nCreator4"
            DstPort                 4
          }
          Branch {
            Points                  [215, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 3
          Points                  [0, 45]
          Branch {
            Points                  [-40, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 6
          }
          Branch {
            Points                  [175, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 6
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 4
          Points                  [0, 55]
          Branch {
            Points                  [-75, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 7
          }
          Branch {
            Points                  [140, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 7
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 5
          Points                  [0, 65]
          Branch {
            Points                  [-110, 0]
            DstBlock                "Bus\nCreator4"
            DstPort                 8
          }
          Branch {
            Points                  [105, 0]
            DstBlock                "Bus\nCreator3"
            DstPort                 8
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 6
          Points                  [0, 75; -265, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 1
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 8
          Points                  [0, 85; -150, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 7
          Points                  [0, 95; -255, 0]
          DstBlock                "Bus\nCreator4"
          DstPort                 5
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLA Function1"
          SrcPort                 9
          Points                  [0, 105; -140, 0]
          DstBlock                "Bus\nCreator3"
          DstPort                 5
        }
        Line {
          SrcBlock                "Ma_max"
          SrcPort                 1
          Points                  [145, 0]
          DstBlock                "Embedded\nMATLA Function1"
          DstPort                 3
        }
        Annotation {
          Position                [435, 556]
          UseDisplayTextAsClickCallback off
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Viewer_Block_"
      Ports                   [1, 1]
      Position                [445, 528, 535, 562]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskDisplay             "disp('Viewer-Block','texmode','on')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "none"
      MaskIconUnits           "autoscale"
      System {
        Name                    "Viewer_Block_"
        Location                [497, 123, 802, 304]
        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                [35, 88, 65, 102]
          ForegroundColor         "green"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [220, 31, 225, 154]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               Demux
          Name                    "Demux"
          Ports                   [1, 8]
          Position                [90, 28, 95, 157]
          BackgroundColor         "black"
          ShowName                off
          Outputs                 "8"
          DisplayOption           "bar"
          BusSelectionMode        on
          Port {
            PortNumber              1
            Name                    "p"
            PropagatedSignals       "p"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_viewer"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "rho_viewer"
          }
          Port {
            PortNumber              3
            Name                    "T"
            PropagatedSignals       "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_viewer"
          }
          Port {
            PortNumber              4
            Name                    "m_air"
            PropagatedSignals       "m_air"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "m_air_viewer"
          }
          Port {
            PortNumber              5
            Name                    "m_dot_air"
            PropagatedSignals       "m_dot_air"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "m_dot_air_viewer"
          }
          Port {
            PortNumber              6
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_viewer"
          }
          Port {
            PortNumber              7
            Name                    "x_CO2"
            PropagatedSignals       "x_CO2"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_CO2_viewer"
          }
          Port {
            PortNumber              8
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_liq_viewer"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [250, 88, 280, 102]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 1
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 2
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 3
          DstBlock                "Bus\nCreator1"
          DstPort                 3
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 4
          DstBlock                "Bus\nCreator1"
          DstPort                 4
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 5
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 6
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 7
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Demux"
          SrcPort                 8
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          DstBlock                "Demux"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Vol_1D_"
      Ports                   [2, 1]
      Position                [25, 20, 105, 75]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskType                "Volume Element (1D)"
      MaskDescription         "Represents a volume element with 1 aperture."
      MaskHelp                "file:///c:/Mueller/Matlab/Modell/Modell_Blocks/"
"Lib/Help_Vol_1D.pdf"
      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([.5],[.5],[1.5 2.5 2.5 1.5 1.5],[1 1 2 2 1"
"],[2.5],[2.5])\nport_label('input',2,'Q_dot')\nport_label('output',1,'1D')\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Vol_1D_"
        Location                [99, 110, 1111, 744]
        Open                    off
        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"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [155, 83, 185, 97]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [155, 163, 185, 177]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [8, 1]
          Position                [1010, 416, 1015, 539]
          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\nSelector2"
          Ports                   [1, 5]
          Position                [125, 39, 130, 141]
          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                [380, 38, 520, 212]
          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 basic_components 7"
"6"
              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                [330, 223, 520, 497]
          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 basic_components 1"
"2"
              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                   [6, 5]
          Position                [685, 230, 830, 565]
          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"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_WV"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            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              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O"
            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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 280, 320, 320]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 7"
              Ports                   [6, 6]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 6]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho"
                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               Terminator
              Name                    " Terminator "
              Position                [460, 291, 480, 309]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 190]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              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                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [570, 240, 615, 275]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [570, 295, 615, 330]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "m_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "Custom"
            DataLoggingName         "m_air_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [570, 350, 615, 385]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [570, 405, 615, 440]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [570, 460, 615, 495]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [190, 96, 275, 124]
          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               Constant
          Name                    "V"
          Position                [190, 36, 275, 64]
          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                [800, 160, 830, 190]
          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                [190, 66, 275, 94]
          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                [190, 156, 275, 184]
          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                [190, 126, 275, 154]
          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                [190, 186, 275, 214]
          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                [1040, 473, 1070, 487]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-120, 0; 0, 315]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [70, 0; 0, 310]
          DstBlock                "Bus\nCreator"
          DstPort                 5
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          Points                  [0, 0]
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          Points                  [0, 0]
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          Points                  [0, 0]
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          Points                  [0, 0]
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 20, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 150; -335, 0; 0, -235]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 90; -345, 0; 0, -205]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [30, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 5
          }
          Branch {
            Points                  [0, 30; -355, 0; 0, -175]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 5
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [130, 0; 0, 155]
          DstBlock                "Bus\nCreator"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [115, 0; 0, 105]
          DstBlock                "Bus\nCreator"
          DstPort                 2
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [55, 0; 0, 100]
          DstBlock                "Bus\nCreator"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [40, 0; 0, 50]
          DstBlock                "Bus\nCreator"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          DstBlock                "Bus\nCreator"
          DstPort                 8
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [0, 0; 15, 0]
          Branch {
            Points                  [0, -115; 285, 0; 0, 270]
            DstBlock                "Bus\nCreator"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 210; -325, 0; 0, -265]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [2, 1]
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 1
          }
          Branch {
            Points                  [0, 270; -315, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
          Branch {
            Points                  [0, -45; 310, 0; 0, 240]
            DstBlock                "Bus\nCreator"
            DstPort                 3
          }
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-75, 0; 0, 320]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-80, 0; 0, 325]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-70, 0; 0, 315]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-65, 0; 0, 310]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-85, 0; 0, 330]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, 485]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [80, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
          Branch {
            Points                  [0, -80; 170, 0; 0, 235]
            DstBlock                "Integrator1"
            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
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 260]
          DstBlock                "Integrator2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 270]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 280]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 290]
          DstBlock                "Integrator5"
          DstPort                 2
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Vol_2D_"
      Ports                   [3, 1]
      Position                [25, 92, 105, 148]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskType                "Volume Element (2D)"
      MaskDescription         "Represents a volume element with 2 apertures."
      MaskHelp                "file:///c:/Mueller/Matlab/Modell/Modell_Blocks/"
"Lib/Help_Vol_2D.pdf"
      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([.5],[.5],[1.5 2.5 2.5 1.5 1.5],[1 1 2 2 1"
"],[2.5],[2.5])\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_la"
"bel('input',3,'Q_dot')\nport_label('output',1,'2D')\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Vol_2D_"
        Location                [2, 82, 1270, 978]
        Open                    off
        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              "87"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [200, 78, 230, 92]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [200, 183, 230, 197]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [200, 263, 230, 277]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1085, 541, 1090, 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\nSelector2"
          Ports                   [1, 5]
          Position                [170, 34, 175, 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                [170, 139, 175, 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                [430, 123, 570, 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 basic_components 9"
"9"
              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                [385, 301, 575, 619]
          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 basic_components 1"
"00"
              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                   [6, 5]
          Position                [735, 310, 900, 695]
          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"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            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              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 280, 320, 320]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 1"
"01"
              Ports                   [6, 6]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 6]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho"
                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               Terminator
              Name                    " Terminator "
              Position                [460, 291, 480, 309]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 190]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              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                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [620, 320, 665, 355]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [620, 385, 665, 420]
          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                    "Integrator3"
          Ports                   [2, 1]
          Position                [620, 450, 665, 485]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [620, 515, 665, 550]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [620, 580, 665, 615]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [245, 181, 330, 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               Constant
          Name                    "V"
          Position                [245, 121, 330, 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                [870, 250, 900, 280]
          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                [245, 151, 330, 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                [245, 241, 330, 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                [245, 211, 330, 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                [245, 271, 330, 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                [1125, 598, 1155, 612]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 325]
          DstBlock                "Integrator5"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 305]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 285]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 265]
          DstBlock                "Integrator2"
          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                  [80, 0]
          Branch {
            Points                  [0, -80; 165, 0; 0, 230]
            DstBlock                "Integrator1"
            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 {
            Points                  [0, 530]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [-130, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 15
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [-125, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [-120, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [-115, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [-110, 0; 0, 360]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-105, 0; 0, 365]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-100, 0; 0, 365]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-95, 0; 0, 365]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-90, 0; 0, 365]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-85, 0; 0, 365]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [10, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 1
          }
          Branch {
            Points                  [0, 320; -310, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
          Branch {
            Points                  [0, -35; 330, 0; 0, 275]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [15, 0]
          Branch {
            Points                  [0, 250; -320, 0; 0, -325]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 2
          }
          Branch {
            Labels                  [1, 1]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, -115; 310, 0; 0, 305]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [45, 0; 0, 60]
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [60, 0; 0, 120]
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [120, 0; 0, 135]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [135, 0; 0, 195]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [30, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 5
          }
          Branch {
            Points                  [0, 40; -350, 0; 0, -250]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 5
          }
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [25, 0]
          Branch {
            Points                  [0, 110; -340, 0; 0, -275]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 20, 0]
          Branch {
            Points                  [0, 180; -330, 0; 0, -300]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 3
          }
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [75, 0; 0, 345]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-165, 0; 0, 340]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator1"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Vol_3D_"
      Ports                   [4, 1]
      Position                [25, 165, 105, 230]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskType                "Volume Element (3D)"
      MaskDescription         "Represents a volume element with 3 apertures."
      MaskHelp                "file:///c:/Mueller/Matlab/Modell/Modell_Blocks/"
"Lib/Help_Vol_3D.pdf"
      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([.5],[.5],[1.5 2.5 2.5 1.5 1.5],[1 1 2 2 1"
"],[2.5],[2.5])\nport_label('input',1,'1')\nport_label('input',2,'2')\nport_la"
"bel('input',3,'3')\nport_label('input',4,'Q_dot')\nport_label('output',1,'3D'"
")\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Vol_3D_"
        Location                [2, 82, 1014, 732]
        Open                    off
        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              "80"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [225, 73, 255, 87]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [225, 178, 255, 192]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [225, 283, 255, 297]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [225, 363, 255, 377]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1135, 651, 1140, 774]
          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, 239, 200, 341]
          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, 29, 200, 131]
          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, 134, 200, 236]
          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                [480, 223, 620, 397]
          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 basic_components 7"
"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                [430, 410, 620, 730]
          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 basic_components 8"
              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                   [6, 5]
          Position                [785, 420, 950, 805]
          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"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "p_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              2
            Name                    "rho"
            PropagatedSignals       "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_WV"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            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              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O"
            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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 280, 320, 320]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 9"
              Ports                   [6, 6]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 6]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho"
                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               Terminator
              Name                    " Terminator "
              Position                [460, 291, 480, 309]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 190]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              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                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [670, 430, 715, 465]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator2"
          Ports                   [2, 1]
          Position                [670, 495, 715, 530]
          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                    "Integrator3"
          Ports                   [2, 1]
          Position                [670, 560, 715, 595]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [670, 625, 715, 660]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [670, 690, 715, 725]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [280, 281, 365, 309]
          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               Constant
          Name                    "V"
          Position                [280, 221, 365, 249]
          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                [900, 350, 930, 380]
          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                [280, 251, 365, 279]
          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                [280, 341, 365, 369]
          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                [280, 311, 365, 339]
          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                [280, 371, 365, 399]
          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                [1165, 708, 1195, 722]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-190, 0; 0, 350]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 21
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [95, 0; 0, 355]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          Points                  [0, 0]
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          Points                  [0, 0]
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          Points                  [0, 0]
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          Points                  [0, 0]
          DstBlock                "Integrator5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 20, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 3
          }
          Branch {
            Points                  [0, 180; -335, 0; 0, -310]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
          Branch {
            Points                  [0, 110; -345, 0; 0, -290]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [30, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 5
          }
          Branch {
            Points                  [0, 40; -355, 0; 0, -270]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 5
          }
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [135, 0; 0, 195]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [120, 0; 0, 135]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [60, 0; 0, 120]
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [45, 0; 0, 60]
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [0, 0; 15, 0]
          Branch {
            Points                  [0, -125; 310, 0; 0, 315]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
          Branch {
            Labels                  [1, 1]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, 250; -325, 0; 0, -330]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 2
          }
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            Points                  [0, -45; 330, 0; 0, 285]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
          Branch {
            Points                  [0, 320; -315, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 1
          }
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          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, 455]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-90, 0; 0, 450]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-95, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-100, 0; 0, 440]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-105, 0; 0, 435]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [-110, 0; 0, 425]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [-115, 0; 0, 420]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [-120, 0; 0, 415]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [-125, 0; 0, 410]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [-130, 0; 0, 405]
          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, 395]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-140, 0; 0, 390]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 17
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-145, 0; 0, 385]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 18
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-150, 0; 0, 380]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-155, 0; 0, 375]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 20
        }
        Line {
          SrcBlock                "V"
          SrcPort                 1
          Points                  [5, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
          Branch {
            Points                  [0, 540]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
        }
        Line {
          SrcBlock                "p_init"
          SrcPort                 1
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 2
        }
        Line {
          SrcBlock                "T_init"
          SrcPort                 1
          Points                  [95, 0]
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
          Branch {
            Points                  [0, 0; 0, -80; 165, 0; 0, 240]
            DstBlock                "Integrator1"
            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
          DstBlock                "Embedded\nMATLAB Function"
          DstPort                 6
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 275]
          DstBlock                "Integrator2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 295]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 315]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 335]
          DstBlock                "Integrator5"
          DstPort                 2
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "Vol_4D_"
      Ports                   [5, 1]
      Position                [25, 247, 105, 323]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskType                "Volume Element (4D)"
      MaskDescription         "Represents a volume element with 4 apertures."
      MaskHelp                "file:///c:/Mueller/Matlab/Modell/Modell_Blocks/"
"Lib/Help_Vol_4D.pdf"
      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([.5],[.5],[1.5 2.5 2.5 1.5 1.5],[1 1 2 2 1"
"],[2.5],[2.5])\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')"
"\nport_label('output',1,'4D')\n"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,,"
      System {
        Name                    "Vol_4D_"
        Location                [2, 82, 1253, 978]
        Open                    off
        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"
        Block {
          BlockType               Inport
          Name                    "In_1"
          Position                [250, 73, 280, 87]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_2"
          Position                [250, 178, 280, 192]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_3"
          Position                [250, 283, 280, 297]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "3"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "In_4"
          Position                [250, 388, 280, 402]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "4"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Q_dot"
          Position                [250, 468, 280, 482]
          Orientation             "left"
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "5"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator1"
          Ports                   [8, 1]
          Position                [1160, 821, 1165, 944]
          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                [220, 239, 225, 341]
          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                [220, 29, 225, 131]
          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                [220, 344, 225, 446]
          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                [220, 134, 225, 236]
          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                [505, 328, 645, 502]
          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 basic_components 1"
"3"
              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                [455, 508, 645, 897]
          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 basic_components 1"
"4"
              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                   [6, 5]
          Position                [810, 529, 975, 976]
          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"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
          Port {
            PortNumber              3
            Name                    "x_H2O_gas"
            PropagatedSignals       "x_H2O_gas"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "x_H2O_gas_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
          Port {
            PortNumber              4
            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              5
            Name                    "x_H2O_liq"
            PropagatedSignals       "x_H2O_liq"
            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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 280, 320, 320]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 7"
"7"
              Ports                   [6, 6]
              Position                [180, 102, 230, 243]
              FunctionName            "sf_sfun"
              PortCounts              "[6 6]"
              Port {
                PortNumber              2
                Name                    "p"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
              Port {
                PortNumber              3
                Name                    "rho"
                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               Terminator
              Name                    " Terminator "
              Position                [460, 291, 480, 309]
            }
            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                    "x_H2O_gas"
              Position                [460, 171, 480, 189]
              Port                    "3"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_CO2"
              Position                [460, 206, 480, 224]
              Port                    "4"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Block {
              BlockType               Outport
              Name                    "x_H2O_liq"
              Position                [460, 246, 480, 264]
              Port                    "5"
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 190]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              SrcPort                 1
              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                "V"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 6
            }
            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                    "x_H2O_gas"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 4
              DstBlock                "x_H2O_gas"
              DstPort                 1
            }
            Line {
              Name                    "x_CO2"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 5
              DstBlock                "x_CO2"
              DstPort                 1
            }
            Line {
              Name                    "x_H2O_liq"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 6
              DstBlock                "x_H2O_liq"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator1"
          Ports                   [2, 1]
          Position                [695, 620, 740, 655]
          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                    "Integrator2"
          Ports                   [2, 1]
          Position                [695, 695, 740, 730]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator3"
          Ports                   [2, 1]
          Position                [695, 770, 740, 805]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator4"
          Ports                   [2, 1]
          Position                [695, 845, 740, 880]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
        }
        Block {
          BlockType               Integrator
          Name                    "Integrator5"
          Ports                   [2, 1]
          Position                [695, 545, 740, 580]
          NamePlacement           "alternate"
          ShowName                off
          InitialConditionSource  "external"
          LimitOutput             on
          LowerSaturationLimit    "0"
          IgnoreLimit             off
          Port {
            PortNumber              1
            Name                    "T"
            TestPoint               on
            RTWStorageClass         "Auto"
            DataLogging             on
            DataLoggingNameMode     "Custom"
            DataLoggingName         "T_re_init"
            DataLoggingLimitDataPoints on
            DataLoggingMaxPoints    "1"
          }
        }
        Block {
          BlockType               Constant
          Name                    "T_init"
          Position                [300, 386, 385, 414]
          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               Constant
          Name                    "V"
          Position                [300, 326, 385, 354]
          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                [945, 460, 975, 490]
          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                [300, 356, 385, 384]
          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                [300, 446, 385, 474]
          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                [300, 416, 385, 444]
          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                [300, 476, 385, 504]
          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                [1190, 878, 1220, 892]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 4
          Points                  [25, 0; 0, 385]
          DstBlock                "Integrator4"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 3
          Points                  [20, 0; 0, 355]
          DstBlock                "Integrator3"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 2
          Points                  [15, 0; 0, 325]
          DstBlock                "Integrator2"
          DstPort                 2
        }
        Line {
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, 295]
          DstBlock                "Integrator1"
          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                  [100, 0]
          Branch {
            Points                  [0, -80; 165, 0; 0, 250]
            DstBlock                "Integrator5"
            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 {
            Points                  [0, 600]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 6
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 5
          Points                  [-180, 0; 0, 440]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 25
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 4
          Points                  [-175, 0; 0, 445]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 24
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 3
          Points                  [-170, 0; 0, 450]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 23
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 2
          Points                  [-165, 0; 0, 455]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 22
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector3"
          SrcPort                 1
          Points                  [-160, 0; 0, 460]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 21
        }
        Line {
          SrcBlock                "In_4"
          SrcPort                 1
          DstBlock                "Bus\nSelector3"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 5
          Points                  [-155, 0; 0, 470]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 20
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 4
          Points                  [-150, 0; 0, 475]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 19
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 3
          Points                  [-145, 0; 0, 480]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 18
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 2
          Points                  [-140, 0; 0, 485]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 17
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector1"
          SrcPort                 1
          Points                  [-135, 0; 0, 490]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 16
        }
        Line {
          SrcBlock                "In_3"
          SrcPort                 1
          DstBlock                "Bus\nSelector1"
          DstPort                 1
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 5
          Points                  [-130, 0; 0, 500]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 15
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 4
          Points                  [-125, 0; 0, 505]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 14
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 3
          Points                  [-120, 0; 0, 510]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 13
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 2
          Points                  [-115, 0; 0, 515]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 12
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector5"
          SrcPort                 1
          Points                  [-110, 0; 0, 520]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 11
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 5
          Points                  [-105, 0; 0, 530]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 10
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          Points                  [-100, 0; 0, 535]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 9
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [-95, 0; 0, 540]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 8
        }
        Line {
          Name                    "<m_dot_air>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [-90, 0; 0, 545]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 7
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [-85, 0; 0, 550]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 6
        }
        Line {
          SrcBlock                "In_2"
          SrcPort                 1
          DstBlock                "Bus\nSelector5"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator1"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          SrcBlock                "In_1"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Integrator5"
          SrcPort                 1
          Points                  [0, 0; 10, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 1
          }
          Branch {
            Points                  [0, 370; -315, 0]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 1
          }
          Branch {
            Points                  [0, -50; 330, 0; 0, 345]
            DstBlock                "Bus\nCreator1"
            DstPort                 3
          }
        }
        Line {
          Name                    "m_air"
          SrcBlock                "Integrator1"
          SrcPort                 1
          Points                  [0, 0; 15, 0]
          Branch {
            Points                  [0, 290; -325, 0; 0, -400]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 2
          }
          Branch {
            Labels                  [1, 1]
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 2
          }
          Branch {
            Points                  [0, -140; 310, 0; 0, 375]
            DstBlock                "Bus\nCreator1"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 5
          DstBlock                "Bus\nCreator1"
          DstPort                 8
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 4
          Points                  [45, 0; 0, 75]
          DstBlock                "Bus\nCreator1"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 3
          Points                  [60, 0; 0, 150]
          DstBlock                "Bus\nCreator1"
          DstPort                 6
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 2
          Points                  [120, 0; 0, 180]
          DstBlock                "Bus\nCreator1"
          DstPort                 2
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Embedded_MATLAB_Function_2"
          SrcPort                 1
          Points                  [135, 0; 0, 255]
          DstBlock                "Bus\nCreator1"
          DstPort                 1
        }
        Line {
          SrcBlock                "Integrator4"
          SrcPort                 1
          Points                  [30, 0]
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 5
          }
          Branch {
            Points                  [0, 50; -355, 0; 0, -340]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 5
          }
        }
        Line {
          SrcBlock                "Integrator3"
          SrcPort                 1
          Points                  [0, 0; 25, 0]
          Branch {
            Points                  [0, 130; -345, 0; 0, -360]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 4
          }
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 4
          }
        }
        Line {
          SrcBlock                "Integrator2"
          SrcPort                 1
          Points                  [0, 0; 20, 0]
          Branch {
            Points                  [0, 210; -335, 0; 0, -380]
            DstBlock                "Embedded_MATLAB_Function_1"
            DstPort                 3
          }
          Branch {
            DstBlock                "Embedded_MATLAB_Function_2"
            DstPort                 3
          }
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 5
          DstBlock                "Integrator4"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 4
          DstBlock                "Integrator3"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 3
          DstBlock                "Integrator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 2
          DstBlock                "Integrator1"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [75, 0; 0, 415]
          DstBlock                "Bus\nCreator1"
          DstPort                 5
        }
        Line {
          SrcBlock                "Q_dot"
          SrcPort                 1
          Points                  [-215, 0; 0, 415]
          DstBlock                "Embedded_MATLAB_Function_1"
          DstPort                 26
        }
        Line {
          SrcBlock                "Embedded_MATLAB_Function_1"
          SrcPort                 1
          DstBlock                "Integrator5"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "m_dot_Const_"
      Ports                   [0, 1]
      Position                [430, 26, 545, 64]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Mass Flow [kg/s]|Temperature [K]|Water Vapor Co"
"ntent|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           "m_dot=@1;T=@2;x_H2O_gas=@3;x_CO2=@4;x_H2O_liq=@"
"5;"
      MaskDisplay             "disp('m_dot = Const')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,"
      System {
        Name                    "m_dot_Const_"
        Location                [142, 338, 1154, 1008]
        Open                    off
        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"
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [320, 52, 325, 173]
          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               Constant
          Name                    "T"
          Position                [140, 114, 205, 146]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "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"
          Port {
            PortNumber              1
            Name                    "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [140, 150, 170, 180]
          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                [45, 184, 205, 216]
          ForegroundColor         "green"
          ShowName                off
          Value                   "m_dot/(1+x_H2O_gas+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                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p"
          Position                [140, 45, 170, 75]
          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                    "rho"
          Position                [140, 80, 170, 110]
          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                    "x_CO2"
          Position                [140, 254, 205, 286]
          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                [140, 219, 205, 251]
          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                [140, 289, 205, 321]
          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                [350, 108, 380, 122]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [35, 0; 0, -80]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "T"
          SrcPort                 1
          Points                  [5, 0; 0, -40]
          DstBlock                "Bus\nCreator2"
          DstPort                 3
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [55, 0; 0, -60]
          DstBlock                "Bus\nCreator2"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [1, 1]
          SrcBlock                "x_H2O_gas"
          SrcPort                 1
          Points                  [50, 0; 0, -100]
          DstBlock                "Bus\nCreator2"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [65, 0; 0, -120]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [80, 0; 0, -140]
          DstBlock                "Bus\nCreator2"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          Points                  [25, 0; 0, -20]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "m_dot_Const_State_Ext_"
      Ports                   [1, 1]
      Position                [430, 147, 545, 183]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Mass Flow [kg/s]"
      MaskStyleString         "edit"
      MaskTunableValueString  "on"
      MaskEnableString        "on"
      MaskVisibilityString    "on"
      MaskToolTipString       "on"
      MaskVariables           "m_dot=@1;"
      MaskDisplay             "disp('State = Ext')\nport_label('input',1,'Ext'"
")"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN"
      System {
        Name                    "m_dot_Const_State_Ext_"
        Location                [2, 82, 1014, 752]
        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                [35, 173, 65, 187]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [360, 35, 365, 220]
          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\nSelector2"
          Ports                   [1, 4]
          Position                [95, 123, 100, 232]
          ShowName                off
          OutputSignals           "T,x_H2O_gas,x_CO2,x_H2O_liq"
          Port {
            PortNumber              1
            Name                    "<T>"
            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               Mux
          Name                    "Mux"
          Ports                   [2, 1]
          Position                [205, 286, 210, 324]
          ShowName                off
          Inputs                  "2"
          DisplayOption           "bar"
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [180, 103, 205, 127]
          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               Fcn
          Name                    "m_dot_air"
          Position                [240, 289, 305, 321]
          ShowName                off
          Expr                    "m_dot/(1+u[1]+u[2])"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p"
          Position                [180, 28, 205, 52]
          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                    "rho"
          Position                [180, 53, 205, 77]
          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                    "rho"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Outport
          Name                    "Out"
          Position                [390, 123, 420, 137]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [0, -165]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          DstBlock                "Bus\nSelector2"
          DstPort                 1
        }
        Line {
          Name                    "<T>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 1
          Points                  [200, 0; 0, -50]
          DstBlock                "Bus\nCreator2"
          DstPort                 3
        }
        Line {
          Name                    "<x_H2O_gas>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 2
          Points                  [75, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 6
          }
          Branch {
            Points                  [0, 130]
            DstBlock                "Mux"
            DstPort                 1
          }
        }
        Line {
          Name                    "<x_CO2>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 3
          Points                  [80, 0]
          Branch {
            DstBlock                "Bus\nCreator2"
            DstPort                 7
          }
          Branch {
            Points                  [0, 125]
            DstBlock                "Mux"
            DstPort                 2
          }
        }
        Line {
          Name                    "<x_H2O_liq>"
          Labels                  [0, 0]
          SrcBlock                "Bus\nSelector2"
          SrcPort                 4
          DstBlock                "Bus\nCreator2"
          DstPort                 8
        }
        Line {
          SrcBlock                "Mux"
          SrcPort                 1
          DstBlock                "m_dot_air"
          DstPort                 1
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "m_dot_Ext_"
      Ports                   [1, 1]
      Position                [430, 87, 545, 123]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Temperature [K]|Water Vapor Content|CO2 Content"
"|Water Content"
      MaskStyleString         "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString        "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString       "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables           "T=@1;x_H2O_gas=@2;x_CO2=@3;x_H2O_liq=@4;"
      MaskDisplay             "disp('m_dot = Ext')\nport_label('input',1,'Ext'"
")"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "normalized"
      MaskValueString         "NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,"
      System {
        Name                    "m_dot_Ext_"
        Location                [124, 282, 1136, 952]
        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                [35, 178, 65, 192]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator2"
          Ports                   [8, 1]
          Position                [270, 37, 275, 158]
          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               Constant
          Name                    "T"
          Position                [90, 99, 155, 131]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "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"
          Port {
            PortNumber              1
            Name                    "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [90, 135, 120, 165]
          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               Fcn
          Name                    "m_dot_air"
          Position                [90, 169, 155, 201]
          ShowName                off
          Expr                    "u/(1+x_H2O_gas+x_CO2)"
          Port {
            PortNumber              1
            Name                    "m_dot_air"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Constant
          Name                    "p"
          Position                [90, 30, 120, 60]
          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                    "rho"
          Position                [90, 65, 120, 95]
          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                    "x_CO2"
          Position                [90, 239, 155, 271]
          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                [90, 204, 155, 236]
          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                [90, 274, 155, 306]
          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                [300, 93, 330, 107]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "T"
          SrcPort                 1
          Points                  [5, 0; 0, -40]
          DstBlock                "Bus\nCreator2"
          DstPort                 3
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [55, 0; 0, -60]
          DstBlock                "Bus\nCreator2"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p"
          SrcPort                 1
          DstBlock                "Bus\nCreator2"
          DstPort                 1
        }
        Line {
          SrcBlock                "Bus\nCreator2"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [1, 1]
          SrcBlock                "x_H2O_gas"
          SrcPort                 1
          Points                  [50, 0; 0, -100]
          DstBlock                "Bus\nCreator2"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [65, 0; 0, -120]
          DstBlock                "Bus\nCreator2"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [80, 0; 0, -140]
          DstBlock                "Bus\nCreator2"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          Points                  [25, 0; 0, -20]
          DstBlock                "Bus\nCreator2"
          DstPort                 2
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          DstBlock                "m_dot_air"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [35, 0; 0, -80]
          DstBlock                "Bus\nCreator2"
          DstPort                 5
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "p_Ext_T_Const_"
      Ports                   [2, 1]
      Position                [430, 350, 545, 385]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Temperature [K]|Water Vapor Content|CO2 Content"
"|Water Content"
      MaskStyleString         "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString        "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString       "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables           "T=@1;x_H2O_gas=@2;x_CO2=@3;x_H2O_liq=@4;"
      MaskDisplay             "disp('p = Ext,T = Const')\nport_label('input',2"
",'Ext')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,"
      System {
        Name                    "p_Ext_T_Const_"
        Location                [135, 265, 1147, 915]
        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                [95, 183, 125, 197]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Ext"
          Position                [95, 153, 125, 167]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          Port {
            PortNumber              1
            Name                    "p"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [8, 1]
          Position                [505, 151, 510, 274]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [4, 1]
          Position                [245, 175, 375, 230]
          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                    "rho"
            PropagatedSignals       "rho"
            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                    "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                    "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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 205, 320, 245]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 5"
"6"
              Ports                   [4, 2]
              Position                [180, 102, 230, 203]
              FunctionName            "sf_sfun"
              PortCounts              "[4 2]"
              Port {
                PortNumber              2
                Name                    "rho"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 216, 480, 234]
            }
            Block {
              BlockType               Outport
              Name                    "rho"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 95]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "T"
              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 {
              Name                    "rho"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "rho"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Constant
          Name                    "T"
          Position                [95, 299, 160, 331]
          ForegroundColor         "green"
          ShowName                off
          Value                   "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"
          Port {
            PortNumber              1
            Name                    "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Terminator
          Name                    "Terminator1"
          Position                [155, 180, 175, 200]
          ShowName                off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [310, 335, 340, 365]
          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                [310, 370, 340, 400]
          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                [95, 439, 160, 471]
          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                [95, 404, 160, 436]
          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                [95, 474, 160, 506]
          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                [535, 208, 565, 222]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Terminator1"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [75, 0; 0, -145]
          DstBlock                "Bus\nCreator"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Ext"
          SrcPort                 1
          Points                  [100, 0]
          Branch {
            DstBlock                "Bus\nCreator"
            DstPort                 1
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [90, 0; 0, -165]
          DstBlock                "Bus\nCreator"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator"
          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]
          Branch {
            Points                  [225, 0; 0, -185]
            DstBlock                "Bus\nCreator"
            DstPort                 6
          }
          Branch {
            Points                  [0, -210]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [245, 0; 0, -205]
            DstBlock                "Bus\nCreator"
            DstPort                 7
          }
          Branch {
            Points                  [0, -230]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [315, 0; 0, -225]
          DstBlock                "Bus\nCreator"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, -30]
          DstBlock                "Bus\nCreator"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "T"
          SrcPort                 1
          Points                  [65, 0]
          Branch {
            Points                  [175, 0; 0, -125]
            DstBlock                "Bus\nCreator"
            DstPort                 3
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 2
          }
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "p_Ext_rho_Const_"
      Ports                   [2, 1]
      Position                [430, 410, 545, 445]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Density [kg/m³]|Water Vapor Content|CO2 Content"
"|Water Content"
      MaskStyleString         "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString        "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString       "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables           "rho=@1;x_H2O_gas=@2;x_CO2=@3;x_H2O_liq=@4;"
      MaskDisplay             "disp('p = Ext,\\rho = Const','texmode','on')\np"
"ort_label('input',2,'Ext')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,"
      System {
        Name                    "p_Ext_rho_Const_"
        Location                [135, 265, 1147, 915]
        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                [95, 183, 125, 197]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               Inport
          Name                    "Ext"
          Position                [95, 153, 125, 167]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          Port                    "2"
          IconDisplay             "Port number"
          Port {
            PortNumber              1
            Name                    "p"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [8, 1]
          Position                [505, 151, 510, 274]
          ShowName                off
          Inputs                  "'p','rho','T','m_air','m_dot_air','x_H2O_ga"
"s','x_CO2','x_H2O_liq'"
          DisplayOption           "bar"
        }
        Block {
          BlockType               SubSystem
          Name                    "Embedded\nMATLAB Function"
          Ports                   [4, 1]
          Position                [245, 179, 375, 236]
          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                    "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                    "p"
              Position                [20, 101, 40, 119]
              IconDisplay             "Port number"
            }
            Block {
              BlockType               Inport
              Name                    "rho"
              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               Demux
              Name                    " Demux "
              Ports                   [1, 1]
              Position                [270, 205, 320, 245]
              Outputs                 "1"
            }
            Block {
              BlockType               "S-Function"
              Name                    " SFunction "
              Tag                     "Stateflow S-Function basic_components 5"
"7"
              Ports                   [4, 2]
              Position                [180, 102, 230, 203]
              FunctionName            "sf_sfun"
              PortCounts              "[4 2]"
              Port {
                PortNumber              2
                Name                    "T"
                RTWStorageClass         "Auto"
                DataLoggingNameMode     "SignalName"
              }
            }
            Block {
              BlockType               Terminator
              Name                    " Terminator "
              Position                [460, 216, 480, 234]
            }
            Block {
              BlockType               Outport
              Name                    "T"
              Position                [460, 101, 480, 119]
              IconDisplay             "Port number"
              BusOutputAsStruct       off
            }
            Line {
              SrcBlock                " SFunction "
              SrcPort                 1
              Points                  [0, 95]
              DstBlock                " Demux "
              DstPort                 1
            }
            Line {
              SrcBlock                " Demux "
              SrcPort                 1
              DstBlock                " Terminator "
              DstPort                 1
            }
            Line {
              SrcBlock                "p"
              SrcPort                 1
              DstBlock                " SFunction "
              DstPort                 1
            }
            Line {
              SrcBlock                "rho"
              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 {
              Name                    "T"
              Labels                  [0, 0]
              SrcBlock                " SFunction "
              SrcPort                 2
              DstBlock                "T"
              DstPort                 1
            }
          }
        }
        Block {
          BlockType               Terminator
          Name                    "Terminator1"
          Position                [155, 180, 175, 200]
          ShowName                off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [310, 335, 340, 365]
          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                [310, 370, 340, 400]
          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                    "rho"
          Position                [95, 299, 160, 331]
          ForegroundColor         "green"
          ShowName                off
          Value                   "rho"
          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                    "x_CO2"
          Position                [95, 439, 160, 471]
          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                [95, 404, 160, 436]
          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                [95, 474, 160, 506]
          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                [535, 208, 565, 222]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Terminator1"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [75, 0; 0, -145]
          DstBlock                "Bus\nCreator"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "Ext"
          SrcPort                 1
          Points                  [100, 0]
          Branch {
            DstBlock                "Bus\nCreator"
            DstPort                 1
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 1
          }
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [90, 0; 0, -165]
          DstBlock                "Bus\nCreator"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator"
          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]
          Branch {
            Points                  [225, 0; 0, -185]
            DstBlock                "Bus\nCreator"
            DstPort                 6
          }
          Branch {
            Points                  [0, -205]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 3
          }
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [55, 0]
          Branch {
            Points                  [245, 0; 0, -205]
            DstBlock                "Bus\nCreator"
            DstPort                 7
          }
          Branch {
            Points                  [0, -225]
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 4
          }
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [315, 0; 0, -225]
          DstBlock                "Bus\nCreator"
          DstPort                 8
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "Embedded\nMATLAB Function"
          SrcPort                 1
          Points                  [10, 0; 0, -20]
          DstBlock                "Bus\nCreator"
          DstPort                 3
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          Points                  [65, 0]
          Branch {
            Points                  [175, 0; 0, -140]
            DstBlock                "Bus\nCreator"
            DstPort                 2
          }
          Branch {
            DstBlock                "Embedded\nMATLAB Function"
            DstPort                 2
          }
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "p_T_Const_"
      Ports                   [1, 1]
      Position                [430, 238, 545, 272]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Pressure [Pa]|Temperature [K]|Water Vapor Conte"
"nt|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           "p=@1;T=@2;x_H2O_gas=@3;x_CO2=@4;x_H2O_liq=@5;"
      MaskDisplay             "disp('p,T = Const')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,"
      System {
        Name                    "p_T_Const_"
        Location                [168, 485, 1180, 1135]
        Open                    off
        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"
        Block {
          BlockType               Inport
          Name                    "In"
          Position                [50, 168, 80, 182]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [8, 1]
          Position                [345, 46, 350, 169]
          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                    "T"
          Position                [150, 109, 215, 141]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "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"
          Port {
            PortNumber              1
            Name                    "T"
            RTWStorageClass         "Auto"
            DataLoggingNameMode     "SignalName"
          }
        }
        Block {
          BlockType               Terminator
          Name                    "Terminator"
          Position                [105, 165, 125, 185]
          ShowName                off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [150, 145, 180, 175]
          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                [150, 180, 180, 210]
          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                    "p"
          Position                [150, 39, 215, 71]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p"
          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                    "rho"
          Position                [150, 74, 215, 106]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "(p/T)*(1/((1/(1+x_H2O_gas+x_CO2))*287.058+("
"x_H2O_gas/(1+x_H2O_gas+x_CO2))*461.523+(x_CO2/(1+x_H2O_gas+x_CO2))*188.924))"
          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                    "x_CO2"
          Position                [150, 249, 215, 281]
          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                [150, 214, 215, 246]
          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                [150, 284, 215, 316]
          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                [375, 103, 405, 117]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Terminator"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [75, 0; 0, -60]
          DstBlock                "Bus\nCreator"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p"
          SrcPort                 1
          DstBlock                "Bus\nCreator"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [90, 0; 0, -80]
          DstBlock                "Bus\nCreator"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_gas"
          SrcPort                 1
          Points                  [70, 0; 0, -100]
          DstBlock                "Bus\nCreator"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [85, 0; 0, -120]
          DstBlock                "Bus\nCreator"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [100, 0; 0, -140]
          DstBlock                "Bus\nCreator"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          Points                  [10, 0; 0, -20]
          DstBlock                "Bus\nCreator"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "T"
          SrcPort                 1
          Points                  [25, 0; 0, -40]
          DstBlock                "Bus\nCreator"
          DstPort                 3
        }
      }
    }
    Block {
      BlockType               SubSystem
      Name                    "p_rho_Const_"
      Ports                   [1, 1]
      Position                [430, 294, 545, 326]
      NamePlacement           "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode           "Auto"
      FunctionWithSeparateData off
      MaskHideContents        off
      MaskPromptString        "Pressure [Pa]|Density [kg/m³]|Water Vapor Conte"
"nt|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           "p=@1;rho=@2;x_H2O_gas=@3;x_CO2=@4;x_H2O_liq=@5;"
      MaskDisplay             "disp('p,\\rho = Const','texmode','on')"
      MaskIconFrame           on
      MaskIconOpaque          on
      MaskIconRotate          "port"
      MaskIconUnits           "autoscale"
      MaskValueString         "NaN|NaN|NaN|NaN|NaN"
      MaskTabNameString       ",,,,"
      System {
        Name                    "p_rho_Const_"
        Location                [168, 485, 1180, 1135]
        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                [50, 168, 80, 182]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          IconDisplay             "Port number"
        }
        Block {
          BlockType               BusCreator
          Name                    "Bus\nCreator"
          Ports                   [8, 1]
          Position                [345, 46, 350, 169]
          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                    "T"
          Position                [150, 109, 215, 141]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "(p/rho)*(1/((1/(1+x_H2O_gas+x_CO2))*287.058"
"+(x_H2O_gas/(1+x_H2O_gas+x_CO2))*461.523+(x_CO2/(1+x_H2O_gas+x_CO2))*188.924)"
")"
          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               Terminator
          Name                    "Terminator"
          Position                [105, 165, 125, 185]
          ShowName                off
        }
        Block {
          BlockType               Constant
          Name                    "m_air"
          Position                [150, 145, 180, 175]
          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                [150, 180, 180, 210]
          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                    "p"
          Position                [150, 39, 215, 71]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "p"
          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                    "rho"
          Position                [150, 74, 215, 106]
          ForegroundColor         "green"
          NamePlacement           "alternate"
          ShowName                off
          Value                   "rho"
          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                    "x_CO2"
          Position                [150, 249, 215, 281]
          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                [150, 214, 215, 246]
          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                [150, 284, 215, 316]
          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                [375, 103, 405, 117]
          ForegroundColor         "blue"
          IconDisplay             "Port number"
          BusOutputAsStruct       off
        }
        Line {
          SrcBlock                "In"
          SrcPort                 1
          Points                  [0, 0]
          DstBlock                "Terminator"
          DstPort                 1
        }
        Line {
          Name                    "m_air"
          Labels                  [0, 0]
          SrcBlock                "m_air"
          SrcPort                 1
          Points                  [75, 0; 0, -60]
          DstBlock                "Bus\nCreator"
          DstPort                 4
        }
        Line {
          Name                    "p"
          Labels                  [0, 0]
          SrcBlock                "p"
          SrcPort                 1
          DstBlock                "Bus\nCreator"
          DstPort                 1
        }
        Line {
          Name                    "m_dot_air"
          Labels                  [0, 0]
          SrcBlock                "m_dot_air"
          SrcPort                 1
          Points                  [90, 0; 0, -80]
          DstBlock                "Bus\nCreator"
          DstPort                 5
        }
        Line {
          SrcBlock                "Bus\nCreator"
          SrcPort                 1
          DstBlock                "Out"
          DstPort                 1
        }
        Line {
          Name                    "x_H2O_gas"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_gas"
          SrcPort                 1
          Points                  [70, 0; 0, -100]
          DstBlock                "Bus\nCreator"
          DstPort                 6
        }
        Line {
          Name                    "x_CO2"
          Labels                  [0, 0]
          SrcBlock                "x_CO2"
          SrcPort                 1
          Points                  [85, 0; 0, -120]
          DstBlock                "Bus\nCreator"
          DstPort                 7
        }
        Line {
          Name                    "x_H2O_liq"
          Labels                  [0, 0]
          SrcBlock                "x_H2O_liq"
          SrcPort                 1
          Points                  [100, 0; 0, -140]
          DstBlock                "Bus\nCreator"
          DstPort                 8
        }
        Line {
          Name                    "rho"
          Labels                  [0, 0]
          SrcBlock                "rho"
          SrcPort                 1
          Points                  [10, 0; 0, -20]
          DstBlock                "Bus\nCreator"
          DstPort                 2
        }
        Line {
          Name                    "T"
          Labels                  [0, 0]
          SrcBlock                "T"
          SrcPort                 1
          Points                  [25, 0; 0, -40]
          DstBlock                "Bus\nCreator"
          DstPort                 3
        }
      }
    }
    Annotation {
      Position                [176, 107]
      UseDisplayTextAsClickCallback off
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.5 (R2006b) dated Aug  8 2006, 21:09:58
#
#

Stateflow {

        machine {
                id                              1
                name                            "basic_components"
                created                         "16-Jan-2006 11:18:42"
                isLibrary                       0
                firstTarget                     2248
                sfVersion                       65014000
        }

        chart {
                id                                                      2
                name                                                    "Node_3D_/Embedded_MATLAB_Function"
                windowPosition                                          [557.088 58.219 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 [p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq] = Cal(p_old,rh"
                                                "o_old,T_old,x_H2O_gas_old,x_CO2_old,x_H2O_liq_old,p_in_1,rh"
                                                "o_in_1,T_in_1,m_dot_air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2"
                                                "O_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_in_3,T_in_3,m_dot"
                                                "_air_in_3,x_H2O_gas_in_3,x_CO2_in_3,x_H2O_liq_in_3,Delta_p_"
                                                "threshold)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a node 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 Node_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 Node_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"
                                                "% *\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 : 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. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      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                                    "p_old"
                linkNode                                [2 0 7]
                scope                                   INPUT_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_old"
                linkNode                                [2 6 8]
                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                                      8
                name                                    "T_old"
                linkNode                                [2 7 9]
                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                                      9
                name                                    "x_H2O_gas_old"
                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"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      10
                name                                    "x_CO2_old"
                linkNode                                [2 9 11]
                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                                      11
                name                                    "x_H2O_liq_old"
                linkNode                                [2 10 12]
                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                                      12
                name                                    "p_in_1"
                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"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      13
                name                                    "rho_in_1"
                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_in_1"
                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                                    "m_dot_air_in_1"
                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"
                        }
                        complexity              SF_COMPLEX_INHERITED
                }
                dataType                                "inherited"
                complexity                              SF_COMPLEX_INHERITED
        }

        data {
                id                                      16
                name                                    "x_H2O_gas_in_1"
                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"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      17
                name                                    "x_CO2_in_1"
                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_H2O_liq_in_1"
                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                                    "p_in_2"
                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                                    "rho_in_2"
                linkNode                                [2 19 21]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      21
                name                                    "T_in_2"
                linkNode                                [2 20 22]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      22
                name                                    "m_dot_air_in_2"
                linkNode                                [2 21 23]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      23
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2 22 24]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      24
                name                                    "x_CO2_in_2"
                linkNode                                [2 23 25]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      25
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2 24 26]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      26
                name                                    "p_in_3"
                linkNode                                [2 25 27]
                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                                      27
                name                                    "rho_in_3"
                linkNode                                [2 26 28]
                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                                      28
                name                                    "T_in_3"
                linkNode                                [2 27 29]
                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                                      29
                name                                    "p"
                linkNode                                [2 28 30]
                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                                      30
                name                                    "rho"
                linkNode                                [2 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                                    "T"
                linkNode                                [2 30 32]
                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                                      32
                name                                    "m_dot_air_in_3"
                linkNode                                [2 31 33]
                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                                      33
                name                                    "x_H2O_gas_in_3"
                linkNode                                [2 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                                    "x_CO2_in_3"
                linkNode                                [2 33 35]
                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                                      35
                name                                    "x_H2O_gas"
                linkNode                                [2 34 36]
                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                                      36
                name                                    "x_CO2"
                linkNode                                [2 35 37]
                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                                      37
                name                                    "x_H2O_liq"
                linkNode                                [2 36 38]
                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                                      38
                name                                    "x_H2O_liq_in_3"
                linkNode                                [2 37 39]
                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                                      39
                name                                    "Delta_p_threshold"
                linkNode                                [2 38 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              40
                name            "Node_3D_/Embedded_MATLAB_Function"
                machine         1
                chart           2
        }

        chart {
                id                                                      41
                name                                                    "HR_Conv_Thermal_Capacity_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.36 177.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 42 0 0]
                firstTransition                                         44
                firstJunction                                           43
                viewObj                                                 41
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               45
                chartFileNumber                                         2
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      42
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   41
                treeNode                                [41 0 0 0]
                superState                              SUBCHART
                subviewer                               41
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [Q_dot_1,Q_dot_2,d_T] = Cal(A,m,c,alpha_1,alpha_2,"
                                                "T,T_1,T_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Heat Resistance + Thermal Capacity\n"
                                                "% *\n"
                                                "% * Number of inputs:                                      "
                                                "        2\n"
                                                "% *\n"
                                                "% * Parameter: Surface:                                    "
                                                "        A\n"
                                                "% *            Mass wall:                                  "
                                                "        m\n"
                                                "% *            Specific heat capacity wall:                "
                                                "        c\n"
                                                "% *            Convection heat transfer coefficient via sur"
                                                "face 1: alpha_1\n"
                                                "% *            Convection heat transfer coefficient via sur"
                                                "face 2: alpha_2\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of HR+TC\n"
                                                "% *\n"
                                                "% * Temperature:                                           "
                                                "        T_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of HR+TC\n"
                                                "% *\n"
                                                "% * Heat flow:                                             "
                                                "        Q_dot\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation heat flow.\n"
                                                "% * 2. Modification of the temperature.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. Heat Transfer process = convection    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation heat flow\n"
                                                "Q_dot_1 = -alpha_1*A*(T_1-T);\n"
                                                "Q_dot_2 = -alpha_2*A*(T_2-T);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Modification of the temperature\n"
                                                "d_T     = -(Q_dot_1+Q_dot_2)/(m*c)\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[132 176 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                      43
                position                [23.5747 49.5747 7]
                chart                   41
                linkNode                [41 0 0]
                subviewer               41
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      44
                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                      43
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   41
                linkNode                [41 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               41
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      45
                name                                    "A"
                linkNode                                [41 0 46]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      46
                name                                    "m"
                linkNode                                [41 45 47]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      47
                name                                    "c"
                linkNode                                [41 46 48]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      48
                name                                    "alpha_1"
                linkNode                                [41 47 49]
                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                                      49
                name                                    "alpha_2"
                linkNode                                [41 48 50]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      50
                name                                    "Q_dot_1"
                linkNode                                [41 49 51]
                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                                      51
                name                                    "Q_dot_2"
                linkNode                                [41 50 52]
                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                                      52
                name                                    "T"
                linkNode                                [41 51 53]
                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                                      53
                name                                    "T_1"
                linkNode                                [41 52 54]
                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                                      54
                name                                    "T_2"
                linkNode                                [41 53 55]
                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                                      55
                name                                    "d_T"
                linkNode                                [41 54 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              56
                name            "HR_Conv_Thermal_Capacity_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           41
        }

        chart {
                id                                                      57
                name                                                    "HR_Cond_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [435.36 162.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 58 0 0]
                firstTransition                                         60
                firstJunction                                           59
                viewObj                                                 57
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               61
                chartFileNumber                                         3
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      58
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   57
                treeNode                                [57 0 0 0]
                superState                              SUBCHART
                subviewer                               57
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [Q_dot_1,Q_dot_2] = Cal(A,b,lambda,T_in_1,T_in_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Heat Resistance\n"
                                                "% *\n"
                                                "% * Number of inputs:                2\n"
                                                "% *\n"
                                                "% * Parameter: Surface:              A\n"
                                                "% *            Thickness:            b\n"
                                                "% *            Thermal conductivity: lambda\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of HR\n"
                                                "% *\n"
                                                "% * Temperature:                     T_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of Block HR\n"
                                                "% *\n"
                                                "% * Heat flow:                       Q_dot\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation heat flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. Heat transfer process = conduction    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation heat flow\n"
                                                "Q_dot_1 = -lambda*(A/b)*(T_1-T_2);\n"
                                                "Q_dot_2 = -lambda*(A/b)*(T_2-T_1);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[145 169 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                      59
                position                [23.5747 49.5747 7]
                chart                   57
                linkNode                [57 0 0]
                subviewer               57
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      60
                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                      59
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   57
                linkNode                [57 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               57
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      61
                name                                    "A"
                linkNode                                [57 0 62]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      62
                name                                    "b"
                linkNode                                [57 61 63]
                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                                      63
                name                                    "lambda"
                linkNode                                [57 62 64]
                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                                      64
                name                                    "Q_dot_1"
                linkNode                                [57 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                                    "Q_dot_2"
                linkNode                                [57 64 66]
                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                                      66
                name                                    "T_in_1"
                linkNode                                [57 65 67]
                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                                      67
                name                                    "T_in_2"
                linkNode                                [57 66 0]
                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
        }

        instance {
                id              68
                name            "HR_Cond_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           57
        }

        chart {
                id                                                      69
                name                                                    "HR_Rad_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [450.36 147.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 70 0 0]
                firstTransition                                         72
                firstJunction                                           71
                viewObj                                                 69
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               73
                chartFileNumber                                         4
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      70
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   69
                treeNode                                [69 0 0 0]
                superState                              SUBCHART
                subviewer                               69
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function Q_dot = Cal(sigma,epsilon,A,T_s,T)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Heat Resistance\n"
                                                "% *\n"
                                                "% * Number of inputs:                     1\n"
                                                "% *\n"
                                                "% * Parameter: Stefan Boltzmann Constant: sigma\n"
                                                "% *            Emissivity:                epsilon\n"
                                                "% *            Surface:                   A\n"
                                                "% *            Surface Temperature:       T_s\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of HR Rad\n"
                                                "% *\n"
                                                "% * Temperature:                          T_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of HR Rad\n"
                                                "% *\n"
                                                "% * Heat flow:                            Q_dot\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation heat flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. Heat Transfer process = radiation   \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation heat flow\n"
                                                "Q_dot = epsilon*sigma*(T^4-T_s^4);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[53 62 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                      71
                position                [23.5747 49.5747 7]
                chart                   69
                linkNode                [69 0 0]
                subviewer               69
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      72
                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                      71
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   69
                linkNode                [69 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               69
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      73
                name                                    "sigma"
                linkNode                                [69 0 74]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      74
                name                                    "epsilon"
                linkNode                                [69 73 75]
                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                                      75
                name                                    "A"
                linkNode                                [69 74 76]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      76
                name                                    "T_s"
                linkNode                                [69 75 77]
                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                                      77
                name                                    "T"
                linkNode                                [69 76 78]
                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                                      78
                name                                    "Q_dot"
                linkNode                                [69 77 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              79
                name            "HR_Rad_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           69
        }

        chart {
                id                                                      80
                name                                                    "Node_2D_/Embedded_MATLAB_Function"
                windowPosition                                          [542.088 73.219 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 81 0 0]
                firstTransition                                         83
                firstJunction                                           82
                viewObj                                                 80
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               84
                chartFileNumber                                         5
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      81
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   80
                treeNode                                [80 0 0 0]
                superState                              SUBCHART
                subviewer                               80
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq] = Cal(p_old,rh"
                                                "o_old,T_old,x_H2O_gas_old,x_CO2_old,x_H2O_liq_old,p_in_1,rh"
                                                "o_in_1,T_in_1,m_dot_air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2"
                                                "O_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,Delta_p_threshold)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a node with 2 apertures\n"
                                                "% * \n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter:               Threshold Equality Input/Outpu"
                                                "t Pressures\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Node_2D\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 Node_2D\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"
                                                "% *\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 and K_2. \n"
                                                "% *                        K_1 and K_2 are time dependant.\n"
                                                "% *\n"
                                                "% *                        m_dot_1 = K_1*(p_in_1-p)\n"
                                                "% *                        m_dot_2 = K_2*(p_in_2-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 = 0)\n"
                                                "% *\n"
                                                "% *                               m_dot_1+m_dot_2 = 0\n"
                                                "% *                               => K_1*(p_in_1-p)+K_2*(p_"
                                                "in_2-p) = 0\n"
                                                "% *                               => p = (K_1*p_in_1+K_2*p_"
                                                "in_2)/(K_1+K_2)\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"
                                                "_2\n"
                                                "% *                               \n"
                                                "% *                               For stability reasons p_i"
                                                "n_1 or p_in_2 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 : 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. 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"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Consistency check\n"
                                                "check             = 1;\n"
                                                "\n"
                                                "if m_dot_1 > 0\n"
                                                "   if m_dot_2 > 0\n"
                                                "      check       = 0;\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if m_dot_1 < 0\n"
                                                "   if m_dot_2 < 0\n"
                                                "      check       = 0;\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if abs(m_dot_1)+abs(m_dot_2) == 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 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 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      82
                position                [23.5747 49.5747 7]
                chart                   80
                linkNode                [80 0 0]
                subviewer               80
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      83
                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                      82
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   80
                linkNode                [80 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               80
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      84
                name                                    "p_old"
                linkNode                                [80 0 85]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      85
                name                                    "rho_old"
                linkNode                                [80 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                                    "T_old"
                linkNode                                [80 85 87]
                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                                      87
                name                                    "x_H2O_gas_old"
                linkNode                                [80 86 88]
                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                                      88
                name                                    "x_CO2_old"
                linkNode                                [80 87 89]
                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                                      89
                name                                    "x_H2O_liq_old"
                linkNode                                [80 88 90]
                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                                      90
                name                                    "p_in_1"
                linkNode                                [80 89 91]
                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                                      91
                name                                    "rho_in_1"
                linkNode                                [80 90 92]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      92
                name                                    "T_in_1"
                linkNode                                [80 91 93]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      93
                name                                    "m_dot_air_in_1"
                linkNode                                [80 92 94]
                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                                      94
                name                                    "x_H2O_gas_in_1"
                linkNode                                [80 93 95]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      95
                name                                    "x_CO2_in_1"
                linkNode                                [80 94 96]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      96
                name                                    "x_H2O_liq_in_1"
                linkNode                                [80 95 97]
                scope                                   INPUT_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                                    "p_in_2"
                linkNode                                [80 96 98]
                scope                                   INPUT_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                                    "rho_in_2"
                linkNode                                [80 97 99]
                scope                                   INPUT_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                                    "T_in_2"
                linkNode                                [80 98 100]
                scope                                   INPUT_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_in_2"
                linkNode                                [80 99 101]
                scope                                   INPUT_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                                    "x_H2O_gas_in_2"
                linkNode                                [80 100 102]
                scope                                   INPUT_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                                    "x_CO2_in_2"
                linkNode                                [80 101 103]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      103
                name                                    "x_H2O_liq_in_2"
                linkNode                                [80 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                                    "p"
                linkNode                                [80 103 105]
                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                                      105
                name                                    "rho"
                linkNode                                [80 104 106]
                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                                      106
                name                                    "T"
                linkNode                                [80 105 107]
                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                                      107
                name                                    "x_H2O_gas"
                linkNode                                [80 106 108]
                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                                      108
                name                                    "x_CO2"
                linkNode                                [80 107 109]
                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                                      109
                name                                    "x_H2O_liq"
                linkNode                                [80 108 110]
                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                                      110
                name                                    "Delta_p_threshold"
                linkNode                                [80 109 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              111
                name            "Node_2D_/Embedded_MATLAB_Function"
                machine         1
                chart           80
        }

        chart {
                id                                                      112
                name                                                    "Node_4D_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [542.088 73.219 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 113 0 0]
                firstTransition                                         115
                firstJunction                                           114
                viewObj                                                 112
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               116
                chartFileNumber                                         6
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      113
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   112
                treeNode                                [112 0 0 0]
                superState                              SUBCHART
                subviewer                               112
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,T,x_H2O_gas,x_CO2,x_H2O_liq] = Cal(p_old,rh"
                                                "o_old,T_old,x_H2O_gas_old,x_CO2_old,x_H2O_liq_old,p_in_1,rh"
                                                "o_in_1,T_in_1,m_dot_air_in_1,x_H2O_gas_in_1,x_CO2_in_1,x_H2"
                                                "O_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_in_3,T_in_3,m_dot"
                                                "_air_in_3,x_H2O_gas_in_3,x_CO2_in_3,x_H2O_liq_in_3,p_in_4,r"
                                                "ho_in_4,T_in_4,m_dot_air_in_4,x_H2O_gas_in_4,x_CO2_in_4,x_H"
                                                "2O_liq_in_4,Delta_p_threshold)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a node with 4 apertures\n"
                                                "% * \n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter:               Threshold Equality Input/Outpu"
                                                "t Pressures\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Node_4D\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 Node_4D\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"
                                                "% *\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, K_3 and K_4. \n"
                                                "% *                        K_1, K_2, K_3 and K_4 are time d"
                                                "ependant.\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"
                                                "% *                        m_dot_4 = K_4*(p_in_4-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+"
                                                "m_dot_4 = 0)\n"
                                                "% *\n"
                                                "% *                               m_dot_1+m_dot_2+m_dot_3+m"
                                                "_dot_4 = 0\n"
                                                "% *                               => K_1*(p_in_1-p)+K_2*(p_"
                                                "in_2-p)+K_3*(p_in_3-p)+K_4*(p_in_4-p) = 0\n"
                                                "% *                               => p = (K_1*p_in_1+K_2*p_"
                                                "in_2+K_3*p_in_3+K_4*p_in_4)/(K_1+K_2+K_3+K_4)\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_4*p_in_4)/(K_2+K_3+K_4)\n"
                                                "% *                               \n"
                                                "% *                               For stability reasons p_i"
                                                "n_1, p_in_2, p_in_3 or p_in_4 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 : 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. 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"
                                                "m_dot_4           = m_dot_air_in_4+m_dot_air_in_4*x_H2O_gas"
                                                "_in_4+m_dot_air_in_4*x_CO2_in_4;\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"
                                                "         if m_dot_4 > 0\n"
                                                "            check = 0;\n"
                                                "         end\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"
                                                "         if m_dot_4 < 0\n"
                                                "            check = 0;\n"
                                                "         end\n"
                                                "      end\n"
                                                "   end\n"
                                                "end\n"
                                                "\n"
                                                "if abs(m_dot_1)+abs(m_dot_2)+abs(m_dot_3)+abs(m_dot_4) == 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"
                                                "   if p_in_4 == 0\n"
                                                "      Numerator   = Numerator+m_dot_4;\n"
                                                "   else\n"
                                                "      if abs(p_in_4-p) < Delta_p_threshold\n"
                                                "         K_4      = 0;\n"
                                                "      else\n"
                                                "         K_4      = abs(m_dot_4)/abs(p_in_4-p);\n"
                                                "      end\n"
                                                "      \n"
                                                "      Numerator   = Numerator+K_4*p_in_4;\n"
                                                "      Denominator = Denominator+K_4;\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"
                                                "   R_avg          = 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 m_dot_4 > 0\n"
                                                "      T           = T+m_dot_4*T_in_4;\n"
                                                "      x_H2O_gas   = x_H2O_gas+m_dot_4*x_H2O_gas_in_4;\n"
                                                "      x_CO2       = x_CO2+m_dot_4*x_CO2_in_4;\n"
                                                "      x_H2O_liq   = x_H2O_liq+m_dot_4*x_H2O_liq_in_4;\n"
                                                "      Denominator = Denominator+m_dot_4;\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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      114
                position                [23.5747 49.5747 7]
                chart                   112
                linkNode                [112 0 0]
                subviewer               112
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      115
                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                      114
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   112
                linkNode                [112 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               112
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      116
                name                                    "p_old"
                linkNode                                [112 0 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                                    "rho_old"
                linkNode                                [112 116 118]
                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                                      118
                name                                    "T_old"
                linkNode                                [112 117 119]
                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                                      119
                name                                    "x_H2O_gas_old"
                linkNode                                [112 118 120]
                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                                      120
                name                                    "x_CO2_old"
                linkNode                                [112 119 121]
                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                                      121
                name                                    "x_H2O_liq_old"
                linkNode                                [112 120 122]
                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                                      122
                name                                    "p_in_1"
                linkNode                                [112 121 123]
                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                                      123
                name                                    "rho_in_1"
                linkNode                                [112 122 124]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      124
                name                                    "T_in_1"
                linkNode                                [112 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                                    "m_dot_air_in_1"
                linkNode                                [112 124 126]
                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                                      126
                name                                    "x_H2O_gas_in_1"
                linkNode                                [112 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_in_1"
                linkNode                                [112 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_in_1"
                linkNode                                [112 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                                    "p_in_2"
                linkNode                                [112 128 130]
                scope                                   INPUT_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                                    "rho_in_2"
                linkNode                                [112 129 131]
                scope                                   INPUT_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                                    "T_in_2"
                linkNode                                [112 130 132]
                scope                                   INPUT_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_dot_air_in_2"
                linkNode                                [112 131 133]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      133
                name                                    "x_H2O_gas_in_2"
                linkNode                                [112 132 134]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      134
                name                                    "x_CO2_in_2"
                linkNode                                [112 133 135]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      135
                name                                    "x_H2O_liq_in_2"
                linkNode                                [112 134 136]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      136
                name                                    "p_in_3"
                linkNode                                [112 135 137]
                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                                      137
                name                                    "rho_in_3"
                linkNode                                [112 136 138]
                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                                      138
                name                                    "T_in_3"
                linkNode                                [112 137 139]
                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                                      139
                name                                    "p"
                linkNode                                [112 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                                    "rho"
                linkNode                                [112 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                                    "T"
                linkNode                                [112 140 142]
                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                                      142
                name                                    "m_dot_air_in_3"
                linkNode                                [112 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                                    "x_H2O_gas_in_3"
                linkNode                                [112 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                                    "x_CO2_in_3"
                linkNode                                [112 143 145]
                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                                      145
                name                                    "x_H2O_gas"
                linkNode                                [112 144 146]
                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                                      146
                name                                    "x_CO2"
                linkNode                                [112 145 147]
                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                                      147
                name                                    "x_H2O_liq"
                linkNode                                [112 146 148]
                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                                      148
                name                                    "x_H2O_liq_in_3"
                linkNode                                [112 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                                    "p_in_4"
                linkNode                                [112 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                                    "rho_in_4"
                linkNode                                [112 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                                    "T_in_4"
                linkNode                                [112 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                                    "m_dot_air_in_4"
                linkNode                                [112 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_H2O_gas_in_4"
                linkNode                                [112 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_CO2_in_4"
                linkNode                                [112 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                                    "x_H2O_liq_in_4"
                linkNode                                [112 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                                    "Delta_p_threshold"
                linkNode                                [112 155 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              157
                name            "Node_4D_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           112
        }

        chart {
                id                                                      158
                name                                                    "Vol_1D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [360.36 237.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 159 0 0]
                firstTransition                                         161
                firstJunction                                           160
                viewObj                                                 158
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               162
                chartFileNumber                                         7
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      159
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   158
                treeNode                                [158 0 0 0]
                superState                              SUBCHART
                subviewer                               158
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 1 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      160
                position                [23.5747 49.5747 7]
                chart                   158
                linkNode                [158 0 0]
                subviewer               158
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      161
                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                      160
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   158
                linkNode                [158 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               158
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      162
                name                                    "T"
                linkNode                                [158 0 163]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      163
                name                                    "p"
                linkNode                                [158 162 164]
                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                                      164
                name                                    "rho"
                linkNode                                [158 163 165]
                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                                      165
                name                                    "m_air"
                linkNode                                [158 164 166]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      166
                name                                    "m_H2O_gas"
                linkNode                                [158 165 167]
                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                                      167
                name                                    "m_CO2"
                linkNode                                [158 166 168]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      168
                name                                    "m_H2O_liq"
                linkNode                                [158 167 169]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      169
                name                                    "V"
                linkNode                                [158 168 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                                    "x_H2O_gas"
                linkNode                                [158 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                                    "x_CO2"
                linkNode                                [158 170 172]
                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                                      172
                name                                    "x_H2O_liq"
                linkNode                                [158 171 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              173
                name            "Vol_1D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           158
        }

        chart {
                id                                                      174
                name                                                    "Vol_3D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [465.45 108.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 175 0 0]
                firstTransition                                         177
                firstJunction                                           176
                viewObj                                                 174
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               178
                chartFileNumber                                         8
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      175
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   174
                treeNode                                [174 0 0 0]
                superState                              SUBCHART
                subviewer                               174
                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 volume with 3 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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 142 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                      176
                position                [23.5747 49.5747 7]
                chart                   174
                linkNode                [174 0 0]
                subviewer               174
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      177
                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                      176
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   174
                linkNode                [174 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               174
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      178
                name                                    "T"
                linkNode                                [174 0 179]
                scope                                   INPUT_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                                    "T_dot"
                linkNode                                [174 178 180]
                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                                      180
                name                                    "m_dot_air"
                linkNode                                [174 179 181]
                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                                      181
                name                                    "m_air"
                linkNode                                [174 180 182]
                scope                                   INPUT_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                                    "m_H2O_gas"
                linkNode                                [174 181 183]
                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                                      183
                name                                    "m_CO2"
                linkNode                                [174 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                                    "m_H2O_liq"
                linkNode                                [174 183 185]
                scope                                   INPUT_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                                    "T_in_1"
                linkNode                                [174 184 186]
                scope                                   INPUT_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                                    "m_dot_air_in_1"
                linkNode                                [174 185 187]
                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                                      187
                name                                    "x_H2O_gas_in_1"
                linkNode                                [174 186 188]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      188
                name                                    "x_CO2_in_1"
                linkNode                                [174 187 189]
                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                                      189
                name                                    "x_H2O_liq_in_1"
                linkNode                                [174 188 190]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      190
                name                                    "T_in_2"
                linkNode                                [174 189 191]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      191
                name                                    "m_dot_air_in_2"
                linkNode                                [174 190 192]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      192
                name                                    "x_H2O_gas_in_2"
                linkNode                                [174 191 193]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      193
                name                                    "x_CO2_in_2"
                linkNode                                [174 192 194]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      194
                name                                    "x_H2O_liq_in_2"
                linkNode                                [174 193 195]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      195
                name                                    "T_in_3"
                linkNode                                [174 194 196]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      196
                name                                    "m_dot_air_in_3"
                linkNode                                [174 195 197]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      197
                name                                    "x_H2O_gas_in_3"
                linkNode                                [174 196 198]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      198
                name                                    "x_CO2_in_3"
                linkNode                                [174 197 199]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      199
                name                                    "x_H2O_liq_in_3"
                linkNode                                [174 198 200]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      200
                name                                    "Q_dot"
                linkNode                                [174 199 201]
                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                                      201
                name                                    "m_dot_H2O_gas"
                linkNode                                [174 200 202]
                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                                      202
                name                                    "m_dot_CO2"
                linkNode                                [174 201 203]
                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                                      203
                name                                    "m_dot_H2O_liq"
                linkNode                                [174 202 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              204
                name            "Vol_3D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           174
        }

        chart {
                id                                                      205
                name                                                    "Vol_3D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [390.36 207.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 206 0 0]
                firstTransition                                         208
                firstJunction                                           207
                viewObj                                                 205
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               209
                chartFileNumber                                         9
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      206
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   205
                treeNode                                [205 0 0 0]
                superState                              SUBCHART
                subviewer                               205
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 3 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      207
                position                [23.5747 49.5747 7]
                chart                   205
                linkNode                [205 0 0]
                subviewer               205
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      208
                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                      207
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   205
                linkNode                [205 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               205
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      209
                name                                    "T"
                linkNode                                [205 0 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                                    "p"
                linkNode                                [205 209 211]
                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                                      211
                name                                    "rho"
                linkNode                                [205 210 212]
                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                                      212
                name                                    "m_air"
                linkNode                                [205 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                                    "m_H2O_gas"
                linkNode                                [205 212 214]
                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                                      214
                name                                    "m_CO2"
                linkNode                                [205 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                                    "m_H2O_liq"
                linkNode                                [205 214 216]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      216
                name                                    "V"
                linkNode                                [205 215 217]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      217
                name                                    "x_H2O_gas"
                linkNode                                [205 216 218]
                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                                      218
                name                                    "x_CO2"
                linkNode                                [205 217 219]
                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                                      219
                name                                    "x_H2O_liq"
                linkNode                                [205 218 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              220
                name            "Vol_3D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           205
        }

        chart {
                id                                                      221
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                windowPosition                                          [597.23 43.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 222 0 0]
                firstTransition                                         224
                firstJunction                                           223
                viewObj                                                 221
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               225
                chartFileNumber                                         10
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      222
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   221
                treeNode                                [221 0 0 0]
                superState                              SUBCHART
                subviewer                               221
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      223
                position                [23.5747 49.5747 7]
                chart                   221
                linkNode                [221 0 0]
                subviewer               221
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      224
                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                      223
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   221
                linkNode                [221 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               221
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      225
                name                                    "n_unit"
                linkNode                                [221 0 226]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      226
                name                                    "rho"
                linkNode                                [221 225 227]
                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                                      227
                name                                    "T"
                linkNode                                [221 226 228]
                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                                      228
                name                                    "x_H2O_gas"
                linkNode                                [221 227 229]
                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                                      229
                name                                    "x_CO2"
                linkNode                                [221 228 230]
                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                                      230
                name                                    "x_H2O_liq"
                linkNode                                [221 229 231]
                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                                      231
                name                                    "p_1"
                linkNode                                [221 230 232]
                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                                      232
                name                                    "m_dot_air_1"
                linkNode                                [221 231 233]
                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                                      233
                name                                    "p_2"
                linkNode                                [221 232 234]
                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                                      234
                name                                    "D_major"
                linkNode                                [221 233 235]
                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                                      235
                name                                    "D_minor"
                linkNode                                [221 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                                    "b_wall"
                linkNode                                [221 235 237]
                scope                                   INPUT_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                                    "b_isolation"
                linkNode                                [221 236 238]
                scope                                   INPUT_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                                    "rho_wall"
                linkNode                                [221 237 239]
                scope                                   INPUT_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                                    "rho_isolation"
                linkNode                                [221 238 240]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      240
                name                                    "c_wall"
                linkNode                                [221 239 241]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      241
                name                                    "c_isolation"
                linkNode                                [221 240 242]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      242
                name                                    "lambda_wall"
                linkNode                                [221 241 243]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      243
                name                                    "lambda_isolation"
                linkNode                                [221 242 244]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      244
                name                                    "L"
                linkNode                                [221 243 245]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      245
                name                                    "zeta"
                linkNode                                [221 244 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                                    "mode"
                linkNode                                [221 245 247]
                scope                                   INPUT_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                                    "p_in_1"
                linkNode                                [221 246 248]
                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                                      248
                name                                    "rho_in_1"
                linkNode                                [221 247 249]
                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                                      249
                name                                    "T_in_1"
                linkNode                                [221 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                                    "x_H2O_gas_in_1"
                linkNode                                [221 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                                    "x_CO2_in_1"
                linkNode                                [221 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                                    "x_H2O_liq_in_1"
                linkNode                                [221 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                                    "p_in_2"
                linkNode                                [221 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                                    "rho_in_2"
                linkNode                                [221 253 255]
                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                                      255
                name                                    "T_in_2"
                linkNode                                [221 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                                    "m_dot_air_2"
                linkNode                                [221 255 257]
                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                                      257
                name                                    "x_H2O_gas_in_2"
                linkNode                                [221 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                                    "x_CO2_in_2"
                linkNode                                [221 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_liq_in_2"
                linkNode                                [221 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                                    "T_wall"
                linkNode                                [221 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                                    "T_ambient"
                linkNode                                [221 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                                    "Q_dot_fluid"
                linkNode                                [221 261 263]
                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                                      263
                name                                    "T_dot_wall"
                linkNode                                [221 262 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              264
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                machine         1
                chart           221
        }

        chart {
                id                                                      265
                name                                                    "Duct_/FR_1/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [390.288 225.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 266 0 0]
                firstTransition                                         268
                firstJunction                                           267
                viewObj                                                 265
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               269
                chartFileNumber                                         11
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      266
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   265
                treeNode                                [265 0 0 0]
                superState                              SUBCHART
                subviewer                               265
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 125 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                      267
                position                [23.5747 49.5747 7]
                chart                   265
                linkNode                [265 0 0]
                subviewer               265
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      268
                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                      267
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   265
                linkNode                [265 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               265
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      269
                name                                    "rho"
                linkNode                                [265 0 270]
                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                                      270
                name                                    "T"
                linkNode                                [265 269 271]
                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                                      271
                name                                    "x_H2O_gas"
                linkNode                                [265 270 272]
                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                                      272
                name                                    "x_CO2"
                linkNode                                [265 271 273]
                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                                      273
                name                                    "x_H2O_liq"
                linkNode                                [265 272 274]
                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                                      274
                name                                    "p_1"
                linkNode                                [265 273 275]
                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                                      275
                name                                    "m_dot_air_1"
                linkNode                                [265 274 276]
                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                                      276
                name                                    "p_2"
                linkNode                                [265 275 277]
                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                                      277
                name                                    "D"
                linkNode                                [265 276 278]
                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                                      278
                name                                    "L"
                linkNode                                [265 277 279]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      279
                name                                    "zeta"
                linkNode                                [265 278 280]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      280
                name                                    "mode"
                linkNode                                [265 279 281]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      281
                name                                    "p_in_1"
                linkNode                                [265 280 282]
                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                                      282
                name                                    "rho_in_1"
                linkNode                                [265 281 283]
                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                                      283
                name                                    "T_in_1"
                linkNode                                [265 282 284]
                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                                      284
                name                                    "x_H2O_gas_in_1"
                linkNode                                [265 283 285]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      285
                name                                    "x_CO2_in_1"
                linkNode                                [265 284 286]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      286
                name                                    "x_H2O_liq_in_1"
                linkNode                                [265 285 287]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      287
                name                                    "p_in_2"
                linkNode                                [265 286 288]
                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                                      288
                name                                    "rho_in_2"
                linkNode                                [265 287 289]
                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                                      289
                name                                    "T_in_2"
                linkNode                                [265 288 290]
                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                                      290
                name                                    "m_dot_air_2"
                linkNode                                [265 289 291]
                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                                      291
                name                                    "x_H2O_gas_in_2"
                linkNode                                [265 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                                    "x_CO2_in_2"
                linkNode                                [265 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                                    "x_H2O_liq_in_2"
                linkNode                                [265 292 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              294
                name            "Duct_/FR_1/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           265
        }

        chart {
                id                                                      295
                name                                                    "Vol_1D_/Embedded_MATLAB_Function_1"
                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 296 0 0]
                firstTransition                                         298
                firstJunction                                           297
                viewObj                                                 295
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               299
                chartFileNumber                                         12
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      296
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   295
                treeNode                                [295 0 0 0]
                superState                              SUBCHART
                subviewer                               295
                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 volume with 1 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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 < 0\n"
                                                "   T_in         = T;\n"
                                                "   m_dot        = m_dot_air_in*(1+x_H2O_gas_in+x_CO2_in);\n"
                                                "   m_dot_air_in = m_dot*(1/(1+(m_H2O_gas/m_air)+(m_CO2/m_ai"
                                                "r)));\n"
                                                "   x_H2O_gas_in = (m_H2O_gas/m_air);\n"
                                                "   x_CO2_in     = (m_CO2/m_air);\n"
                                                "   x_H2O_liq_in = (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;\n"
                                                "m_dot_H2O_gas   = m_dot_air_in*x_H2O_gas_in;\n"
                                                "m_dot_CO2       = m_dot_air_in*x_CO2_in;\n"
                                                "m_dot_H2O_liq   = m_dot_air_in*x_H2O_liq_in;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Modification of the temperature inside the system\n"
                                                "T_dot           = (Q_dot+m_dot_air_in*(c_p_air*T_in-c_v_air"
                                                "*T)+m_dot_air_in*x_H2O_gas_in*(c_p_H2O_gas*T_in-c_v_H2O_gas"
                                                "*T)+m_dot_air_in*x_CO2_in*(c_p_CO2*T_in-c_v_CO2*T))/(c_v_ai"
                                                "r*m_air+c_v_H2O_gas*m_H2O_gas+c_v_CO2*m_CO2);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      297
                position                [23.5747 49.5747 7]
                chart                   295
                linkNode                [295 0 0]
                subviewer               295
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      298
                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                      297
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   295
                linkNode                [295 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               295
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      299
                name                                    "T"
                linkNode                                [295 0 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                                    "T_dot"
                linkNode                                [295 299 301]
                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                                      301
                name                                    "m_dot_air"
                linkNode                                [295 300 302]
                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                                      302
                name                                    "m_air"
                linkNode                                [295 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                                    "m_H2O_gas"
                linkNode                                [295 302 304]
                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                                      304
                name                                    "m_CO2"
                linkNode                                [295 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                                    "m_H2O_liq"
                linkNode                                [295 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                                    "T_in"
                linkNode                                [295 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                                    "m_dot_air_in"
                linkNode                                [295 306 308]
                scope                                   INPUT_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                                    "x_H2O_gas_in"
                linkNode                                [295 307 309]
                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                                      309
                name                                    "x_CO2_in"
                linkNode                                [295 308 310]
                scope                                   INPUT_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                                    "x_H2O_liq_in"
                linkNode                                [295 309 311]
                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                                      311
                name                                    "Q_dot"
                linkNode                                [295 310 312]
                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                                      312
                name                                    "m_dot_H2O_gas"
                linkNode                                [295 311 313]
                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                                      313
                name                                    "m_dot_CO2"
                linkNode                                [295 312 314]
                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                                      314
                name                                    "m_dot_H2O_liq"
                linkNode                                [295 313 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              315
                name            "Vol_1D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           295
        }

        chart {
                id                                                      316
                name                                                    "Vol_4D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [300.36 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 317 0 0]
                firstTransition                                         319
                firstJunction                                           318
                viewObj                                                 316
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               320
                chartFileNumber                                         13
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      317
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   316
                treeNode                                [316 0 0 0]
                superState                              SUBCHART
                subviewer                               316
                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 volume with 4 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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 33 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                      318
                position                [23.5747 49.5747 7]
                chart                   316
                linkNode                [316 0 0]
                subviewer               316
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      319
                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                      318
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   316
                linkNode                [316 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               316
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      320
                name                                    "V"
                linkNode                                [316 0 321]
                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                                      321
                name                                    "p_init"
                linkNode                                [316 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                                    "T_init"
                linkNode                                [316 321 323]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      323
                name                                    "x_H2O_gas_init"
                linkNode                                [316 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                                    "x_CO2_init"
                linkNode                                [316 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                                    "x_H2O_liq_init"
                linkNode                                [316 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                                    "m_air_init"
                linkNode                                [316 325 327]
                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                                      327
                name                                    "m_H2O_gas_init"
                linkNode                                [316 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                                    "m_CO2_init"
                linkNode                                [316 327 329]
                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                                      329
                name                                    "m_H2O_liq_init"
                linkNode                                [316 328 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              330
                name            "Vol_4D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           316
        }

        chart {
                id                                                      331
                name                                                    "Vol_4D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [468.36 132.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 332 0 0]
                firstTransition                                         334
                firstJunction                                           333
                viewObj                                                 331
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               335
                chartFileNumber                                         14
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      332
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   331
                treeNode                                [331 0 0 0]
                superState                              SUBCHART
                subviewer                               331
                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 volume with 4 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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                      333
                position                [23.5747 49.5747 7]
                chart                   331
                linkNode                [331 0 0]
                subviewer               331
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      334
                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                      333
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   331
                linkNode                [331 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               331
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      335
                name                                    "T"
                linkNode                                [331 0 336]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      336
                name                                    "T_dot"
                linkNode                                [331 335 337]
                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                                      337
                name                                    "m_dot_air"
                linkNode                                [331 336 338]
                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                                      338
                name                                    "m_air"
                linkNode                                [331 337 339]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      339
                name                                    "m_H2O_gas"
                linkNode                                [331 338 340]
                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                                      340
                name                                    "m_CO2"
                linkNode                                [331 339 341]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      341
                name                                    "m_H2O_liq"
                linkNode                                [331 340 342]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      342
                name                                    "T_in_1"
                linkNode                                [331 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                                    "m_dot_air_in_1"
                linkNode                                [331 342 344]
                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                                      344
                name                                    "x_H2O_gas_in_1"
                linkNode                                [331 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_in_1"
                linkNode                                [331 344 346]
                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                                      346
                name                                    "x_H2O_liq_in_1"
                linkNode                                [331 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                                    "T_in_2"
                linkNode                                [331 346 348]
                scope                                   INPUT_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_dot_air_in_2"
                linkNode                                [331 347 349]
                scope                                   INPUT_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                                    "x_H2O_gas_in_2"
                linkNode                                [331 348 350]
                scope                                   INPUT_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                                    "x_CO2_in_2"
                linkNode                                [331 349 351]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      351
                name                                    "x_H2O_liq_in_2"
                linkNode                                [331 350 352]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      352
                name                                    "T_in_3"
                linkNode                                [331 351 353]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      353
                name                                    "m_dot_air_in_3"
                linkNode                                [331 352 354]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      354
                name                                    "x_H2O_gas_in_3"
                linkNode                                [331 353 355]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      355
                name                                    "x_CO2_in_3"
                linkNode                                [331 354 356]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      356
                name                                    "x_H2O_liq_in_3"
                linkNode                                [331 355 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                                    "T_in_4"
                linkNode                                [331 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_dot_air_in_4"
                linkNode                                [331 357 359]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      359
                name                                    "x_H2O_gas_in_4"
                linkNode                                [331 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                                    "x_CO2_in_4"
                linkNode                                [331 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                                    "x_H2O_liq_in_4"
                linkNode                                [331 360 362]
                scope                                   INPUT_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                                    "Q_dot"
                linkNode                                [331 361 363]
                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                                      363
                name                                    "m_dot_H2O_gas"
                linkNode                                [331 362 364]
                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                                      364
                name                                    "m_dot_CO2"
                linkNode                                [331 363 365]
                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                                      365
                name                                    "m_dot_H2O_liq"
                linkNode                                [331 364 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              366
                name            "Vol_4D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           331
        }

        chart {
                id                                                      367
                name                                                    "Tee_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [465.23 167.133 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 368 0 0]
                firstTransition                                         370
                firstJunction                                           369
                viewObj                                                 367
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               371
                chartFileNumber                                         15
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      368
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   367
                treeNode                                [367 0 0 0]
                superState                              SUBCHART
                subviewer                               367
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,T,m_air,m_dot_air,x_H2O_gas,x_CO2,x_H2O_liq"
                                                "]=Cal(p_in_1,rho_in_1,T_in_1,m_air_in_1,m_dot_air_in_1,x_H2"
                                                "O_gas_in_1,x_CO2_in_1,x_H2O_liq_in_1,p_in_2,rho_in_2,T_in_2"
                                                ",m_air_in_2,m_dot_air_in_2,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_"
                                                "liq_in_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a tee\n"
                                                "% * \n"
                                                "% * Number of Inputs : 2\n"
                                                "% *\n"
                                                "% * Parameter : Threshold Equality Input/Output Pressures\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Tee\n"
                                                "% *\n"
                                                "% * pressure :               p\n"
                                                "% * density :                rho\n"
                                                "% * temperature :            T\n"
                                                "% * mass dry air :           m_air\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 Tee\n"
                                                "% *\n"
                                                "% * pressure :               p\n"
                                                "% * density :                rho\n"
                                                "% * temperature :            T\n"
                                                "% * mass dry air :           m_air\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. Initialization.\n"
                                                "% * 2. Mixing.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Initialization\n"
                                                "p            =0;\n"
                                                "rho          =0;\n"
                                                "T            =0;\n"
                                                "m_air        =0;\n"
                                                "m_dot_air    =0;\n"
                                                "x_H2O_gas    =0;\n"
                                                "x_CO2        =0;\n"
                                                "x_H2O_liq    =0;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Mixing\n"
                                                "if abs(m_dot_air_in_1)+abs(m_dot_air_in_2)>0\n"
                                                "   p         =(p_in_1*m_dot_air_in_1+p_in_2*m_dot_air_in_2)"
                                                "/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   rho       =(rho_in_1*m_dot_air_in_1+rho_in_2*m_dot_air_i"
                                                "n_2)/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   T         =(T_in_1*m_dot_air_in_1+T_in_2*m_dot_air_in_2)"
                                                "/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   m_air     =(m_air_in_1*m_dot_air_in_1+m_air_in_2*m_dot_a"
                                                "ir_in_2)/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   m_dot_air =(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   x_H2O_gas =(x_H2O_gas_in_1*m_dot_air_in_1+x_H2O_gas_in_2"
                                                "*m_dot_air_in_2)/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   x_CO2     =(x_CO2_in_1*m_dot_air_in_1+x_CO2_in_2*m_dot_a"
                                                "ir_in_2)/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "   x_H2O_liq =(x_H2O_liq_in_1*m_dot_air_in_1+x_H2O_liq_in_2"
                                                "*m_dot_air_in_2)/(m_dot_air_in_1+m_dot_air_in_2);\n"
                                                "end\n"
                                                "\n"
                                                "if abs(m_dot_air_in_1)+abs(m_dot_air_in_2)==0\n"
                                                "   p         =(p_in_1+p_in_2)/2;\n"
                                                "   rho       =(rho_in_1+rho_in_2)/2;\n"
                                                "   T         =(T_in_1+T_in_2)/2;\n"
                                                "   m_air     =(m_air_in_1+m_air_in_2)/2;\n"
                                                "   m_dot_air =(m_dot_air_in_1+m_dot_air_in_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[2 69 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                      369
                position                [23.5747 49.5747 7]
                chart                   367
                linkNode                [367 0 0]
                subviewer               367
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      370
                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                      369
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   367
                linkNode                [367 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               367
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      371
                name                                    "p_in_1"
                linkNode                                [367 0 372]
                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                                      372
                name                                    "rho_in_1"
                linkNode                                [367 371 373]
                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                                      373
                name                                    "T_in_1"
                linkNode                                [367 372 374]
                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                                      374
                name                                    "p"
                linkNode                                [367 373 375]
                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                                      375
                name                                    "m_air_in_1"
                linkNode                                [367 374 376]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      376
                name                                    "rho"
                linkNode                                [367 375 377]
                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                                      377
                name                                    "T"
                linkNode                                [367 376 378]
                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                                      378
                name                                    "m_air"
                linkNode                                [367 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                                    "m_dot_air"
                linkNode                                [367 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                                    "x_H2O_gas"
                linkNode                                [367 379 381]
                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                                      381
                name                                    "x_CO2"
                linkNode                                [367 380 382]
                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                                      382
                name                                    "x_H2O_liq"
                linkNode                                [367 381 383]
                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                                      383
                name                                    "m_dot_air_in_1"
                linkNode                                [367 382 384]
                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                                      384
                name                                    "x_H2O_gas_in_1"
                linkNode                                [367 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                                    "x_CO2_in_1"
                linkNode                                [367 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                                    "x_H2O_liq_in_1"
                linkNode                                [367 385 387]
                scope                                   INPUT_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                                    "p_in_2"
                linkNode                                [367 386 388]
                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                                      388
                name                                    "rho_in_2"
                linkNode                                [367 387 389]
                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                                      389
                name                                    "T_in_2"
                linkNode                                [367 388 390]
                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                                      390
                name                                    "m_air_in_2"
                linkNode                                [367 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                                    "m_dot_air_in_2"
                linkNode                                [367 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                                    "x_H2O_gas_in_2"
                linkNode                                [367 391 393]
                scope                                   INPUT_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                                    "x_CO2_in_2"
                linkNode                                [367 392 394]
                scope                                   INPUT_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                                    "x_H2O_liq_in_2"
                linkNode                                [367 393 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              395
                name            "Tee_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           367
        }

        chart {
                id                                                      396
                name                                                    "Duct_/FR_2/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [405.288 210.094 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                                         16
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        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 [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 Block FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 1 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                      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                                    "rho"
                linkNode                                [396 0 401]
                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                                      401
                name                                    "T"
                linkNode                                [396 400 402]
                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                                      402
                name                                    "x_H2O_gas"
                linkNode                                [396 401 403]
                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                                      403
                name                                    "x_CO2"
                linkNode                                [396 402 404]
                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                                      404
                name                                    "x_H2O_liq"
                linkNode                                [396 403 405]
                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                                      405
                name                                    "p_1"
                linkNode                                [396 404 406]
                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                                      406
                name                                    "m_dot_air_1"
                linkNode                                [396 405 407]
                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                                      407
                name                                    "p_2"
                linkNode                                [396 406 408]
                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                                      408
                name                                    "D"
                linkNode                                [396 407 409]
                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                                      409
                name                                    "L"
                linkNode                                [396 408 410]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      410
                name                                    "zeta"
                linkNode                                [396 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                                    "mode"
                linkNode                                [396 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                                    "p_in_1"
                linkNode                                [396 411 413]
                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                                      413
                name                                    "rho_in_1"
                linkNode                                [396 412 414]
                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                                      414
                name                                    "T_in_1"
                linkNode                                [396 413 415]
                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                                      415
                name                                    "x_H2O_gas_in_1"
                linkNode                                [396 414 416]
                scope                                   INPUT_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                                    "x_CO2_in_1"
                linkNode                                [396 415 417]
                scope                                   INPUT_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                                    "x_H2O_liq_in_1"
                linkNode                                [396 416 418]
                scope                                   INPUT_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                                    "p_in_2"
                linkNode                                [396 417 419]
                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                                      419
                name                                    "rho_in_2"
                linkNode                                [396 418 420]
                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                                      420
                name                                    "T_in_2"
                linkNode                                [396 419 421]
                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                                      421
                name                                    "m_dot_air_2"
                linkNode                                [396 420 422]
                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                                      422
                name                                    "x_H2O_gas_in_2"
                linkNode                                [396 421 423]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      423
                name                                    "x_CO2_in_2"
                linkNode                                [396 422 424]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      424
                name                                    "x_H2O_liq_in_2"
                linkNode                                [396 423 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              425
                name            "Duct_/FR_2/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           396
        }

        chart {
                id                                                      426
                name                                                    "FR_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [375.288 240.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 427 0 0]
                firstTransition                                         429
                firstJunction                                           428
                viewObj                                                 426
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               430
                chartFileNumber                                         17
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      427
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   426
                treeNode                                [426 0 0 0]
                superState                              SUBCHART
                subviewer                               426
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 36 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                      428
                position                [23.5747 49.5747 7]
                chart                   426
                linkNode                [426 0 0]
                subviewer               426
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      429
                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                      428
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   426
                linkNode                [426 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               426
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      430
                name                                    "rho"
                linkNode                                [426 0 431]
                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                                      431
                name                                    "T"
                linkNode                                [426 430 432]
                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                                      432
                name                                    "x_H2O_gas"
                linkNode                                [426 431 433]
                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                                      433
                name                                    "x_CO2"
                linkNode                                [426 432 434]
                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                                      434
                name                                    "x_H2O_liq"
                linkNode                                [426 433 435]
                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                                      435
                name                                    "p_1"
                linkNode                                [426 434 436]
                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                                      436
                name                                    "m_dot_air_1"
                linkNode                                [426 435 437]
                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                                      437
                name                                    "p_2"
                linkNode                                [426 436 438]
                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                                      438
                name                                    "D"
                linkNode                                [426 437 439]
                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                                      439
                name                                    "L"
                linkNode                                [426 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                                    "zeta"
                linkNode                                [426 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                                    "mode"
                linkNode                                [426 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                                    "p_in_1"
                linkNode                                [426 441 443]
                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                                      443
                name                                    "rho_in_1"
                linkNode                                [426 442 444]
                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                                      444
                name                                    "T_in_1"
                linkNode                                [426 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                                    "x_H2O_gas_in_1"
                linkNode                                [426 444 446]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      446
                name                                    "x_CO2_in_1"
                linkNode                                [426 445 447]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      447
                name                                    "x_H2O_liq_in_1"
                linkNode                                [426 446 448]
                scope                                   INPUT_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                                    "p_in_2"
                linkNode                                [426 447 449]
                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                                      449
                name                                    "rho_in_2"
                linkNode                                [426 448 450]
                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                                      450
                name                                    "T_in_2"
                linkNode                                [426 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                                    "m_dot_air_2"
                linkNode                                [426 450 452]
                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                                      452
                name                                    "x_H2O_gas_in_2"
                linkNode                                [426 451 453]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      453
                name                                    "x_CO2_in_2"
                linkNode                                [426 452 454]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      454
                name                                    "x_H2O_liq_in_2"
                linkNode                                [426 453 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              455
                name            "FR_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           426
        }

        chart {
                id                                                      456
                name                                                    "Duct_10x_/FR_1/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [405.288 210.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 457 0 0]
                firstTransition                                         459
                firstJunction                                           458
                viewObj                                                 456
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               460
                chartFileNumber                                         18
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      457
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   456
                treeNode                                [456 0 0 0]
                superState                              SUBCHART
                subviewer                               456
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      458
                position                [23.5747 49.5747 7]
                chart                   456
                linkNode                [456 0 0]
                subviewer               456
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      459
                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                      458
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   456
                linkNode                [456 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               456
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      460
                name                                    "rho"
                linkNode                                [456 0 461]
                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                                      461
                name                                    "T"
                linkNode                                [456 460 462]
                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                                      462
                name                                    "x_H2O_gas"
                linkNode                                [456 461 463]
                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                                      463
                name                                    "x_CO2"
                linkNode                                [456 462 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                                    "x_H2O_liq"
                linkNode                                [456 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_1"
                linkNode                                [456 464 466]
                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                                      466
                name                                    "m_dot_air_1"
                linkNode                                [456 465 467]
                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                                      467
                name                                    "p_2"
                linkNode                                [456 466 468]
                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                                      468
                name                                    "D"
                linkNode                                [456 467 469]
                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                                      469
                name                                    "L"
                linkNode                                [456 468 470]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      470
                name                                    "zeta"
                linkNode                                [456 469 471]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      471
                name                                    "mode"
                linkNode                                [456 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                                    "p_in_1"
                linkNode                                [456 471 473]
                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                                      473
                name                                    "rho_in_1"
                linkNode                                [456 472 474]
                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                                      474
                name                                    "T_in_1"
                linkNode                                [456 473 475]
                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                                      475
                name                                    "x_H2O_gas_in_1"
                linkNode                                [456 474 476]
                scope                                   INPUT_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_CO2_in_1"
                linkNode                                [456 475 477]
                scope                                   INPUT_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_in_1"
                linkNode                                [456 476 478]
                scope                                   INPUT_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_in_2"
                linkNode                                [456 477 479]
                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                                      479
                name                                    "rho_in_2"
                linkNode                                [456 478 480]
                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                                      480
                name                                    "T_in_2"
                linkNode                                [456 479 481]
                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                                      481
                name                                    "m_dot_air_2"
                linkNode                                [456 480 482]
                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                                      482
                name                                    "x_H2O_gas_in_2"
                linkNode                                [456 481 483]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      483
                name                                    "x_CO2_in_2"
                linkNode                                [456 482 484]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      484
                name                                    "x_H2O_liq_in_2"
                linkNode                                [456 483 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              485
                name            "Duct_10x_/FR_1/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           456
        }

        chart {
                id                                                      486
                name                                                    "Valve_Comp_/Embedded\n"
                                        "MATLA Function1"
                windowPosition                                          [435.288 180.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 487 0 0]
                firstTransition                                         489
                firstJunction                                           488
                viewObj                                                 486
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               490
                chartFileNumber                                         19
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      487
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   486
                treeNode                                [486 0 0 0]
                superState                              SUBCHART
                subviewer                               486
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(A,beta,Ma_max,p_in_1,rho_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a valve with compressible flow properties"
                                                "\n"
                                                "% *\n"
                                                "% * Number of inputs:                  2\n"
                                                "% *\n"
                                                "% * Parameter: Surface:                A\n"
                                                "% *            opening factor:         OF\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Valve_Comp\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 Valve_Comp\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. Calculation parameter.\n"
                                                "% * 2. Definition of the specific gas constants.\n"
                                                "% * 3. Calculation of the state variables, Mach number and "
                                                "mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 3. Total values = Input variables higher pressure\n"
                                                "% *\n"
                                                "% *    Ma    = sqrt(2/(gamma-1))*sqrt(((p_total/p)^((gamma-"
                                                "1)/gamma))-1), gamma = c_p/c_v\n"
                                                "% *    rho   = rho_total*(1+((gamma_avg-1)/2)*Ma^2)^(-1/(ga"
                                                "mma_avg-1));\n"
                                                "% *    T     = T_total*(1+((gamma_avg-1)/2)*Ma^2)^(-1);\n"
                                                "% *\n"
                                                "% *    The mass flow is calculated with a compressible mass"
                                                " flow equation.\n"
                                                "% *    This equation is applicable for the whole range of p"
                                                "ossible flow velocities.\n"
                                                "% *\n"
                                                "% *    m_dot = (A_eff*p_total/sqrt(T_total))*sqrt(gamma/R)*"
                                                "M*((1+((gamma-1)/2)*(M^2))^(-(gamma+1)/(2*(gamma-1))));\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A_eff             = sin(pi*beta/180)*A;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Definition of the 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"
                                                "% * 3. Calculation of the state variables, Mach number and "
                                                "mass flow\n"
                                                "rho               = 0;\n"
                                                "T                 = 0;\n"
                                                "x_H2O_gas         = 0;\n"
                                                "x_CO2             = 0;\n"
                                                "x_H2O_liq         = 0;\n"
                                                "m_dot_air_1       = 0;\n"
                                                "m_dot_air_2       = 0;\n"
                                                "\n"
                                                "p_1               = p_in_2;\n"
                                                "p_2               = p_in_1;\n"
                                                "\n"
                                                "if p_in_1 >= p_in_2\n"
                                                "   p_total        = p_in_1;\n"
                                                "   p              = p_in_2;\n"
                                                "   rho_total      = rho_in_1;\n"
                                                "   T_total        = T_in_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"
                                                "   \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"
                                                "   Ma             = sqrt(2/(gamma_avg-1))*sqrt(((p_total/p)"
                                                "^((gamma_avg-1)/gamma_avg))-1);\n"
                                                "   \n"
                                                "   if Ma > Ma_max\n"
                                                "      Ma          = Ma_max;\n"
                                                "   end\n"
                                                "   \n"
                                                "   rho            = rho_total*(1+((gamma_avg-1)/2)*Ma^2)^(-"
                                                "1/(gamma_avg-1));\n"
                                                "   T              = T_total*(1+((gamma_avg-1)/2)*Ma^2)^(-1)"
                                                ";\n"
                                                "   \n"
                                                "   m_dot          = (A_eff*p_total/sqrt(T_total))*sqrt(gamm"
                                                "a_avg/R_avg)*Ma*((1+((gamma_avg-1)/2)*(Ma^2))^(-(gamma_avg+"
                                                "1)/(2*(gamma_avg-1))));\n"
                                                "   m_dot_air_1    = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2    =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   p_total        = p_in_2;\n"
                                                "   p              = p_in_1;\n"
                                                "   rho_total      = rho_in_2;\n"
                                                "   T_total        = T_in_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"
                                                "   \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"
                                                "   Ma             = sqrt(2/(gamma_avg-1))*sqrt(((p_total/p)"
                                                "^((gamma_avg-1)/gamma_avg))-1);\n"
                                                "   \n"
                                                "   if Ma > Ma_max\n"
                                                "      Ma          = Ma_max;\n"
                                                "   end\n"
                                                "   \n"
                                                "   rho            = rho*(1+((gamma_avg-1)/2)*Ma^2)^(-1/(gam"
                                                "ma_avg-1));\n"
                                                "   T              = T*(1+((gamma_avg-1)/2)*Ma^2)^(-1);\n"
                                                "   \n"
                                                "   m_dot          = (A_eff*p_total/sqrt(T_total))*sqrt(gamm"
                                                "a_avg/R_avg)*Ma*((1+((gamma_avg-1)/2)*(Ma^2))^(-(gamma_avg+"
                                                "1)/(2*(gamma_avg-1))));\n"
                                                "   m_dot_air_1    =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2    = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 5 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                      488
                position                [23.5747 49.5747 7]
                chart                   486
                linkNode                [486 0 0]
                subviewer               486
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      489
                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                      488
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   486
                linkNode                [486 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               486
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      490
                name                                    "rho"
                linkNode                                [486 0 491]
                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                                      491
                name                                    "T"
                linkNode                                [486 490 492]
                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                                      492
                name                                    "x_H2O_gas"
                linkNode                                [486 491 493]
                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                                      493
                name                                    "x_CO2"
                linkNode                                [486 492 494]
                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                                      494
                name                                    "x_H2O_liq"
                linkNode                                [486 493 495]
                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                                      495
                name                                    "p_1"
                linkNode                                [486 494 496]
                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                                      496
                name                                    "m_dot_air_1"
                linkNode                                [486 495 497]
                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                                      497
                name                                    "p_2"
                linkNode                                [486 496 498]
                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                                      498
                name                                    "A"
                linkNode                                [486 497 499]
                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                                      499
                name                                    "beta"
                linkNode                                [486 498 500]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      500
                name                                    "Ma_max"
                linkNode                                [486 499 501]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      501
                name                                    "p_in_1"
                linkNode                                [486 500 502]
                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                                      502
                name                                    "rho_in_1"
                linkNode                                [486 501 503]
                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                                      503
                name                                    "T_in_1"
                linkNode                                [486 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                                    "x_H2O_gas_in_1"
                linkNode                                [486 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                                    "x_CO2_in_1"
                linkNode                                [486 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                                    "x_H2O_liq_in_1"
                linkNode                                [486 505 507]
                scope                                   INPUT_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                                    "p_in_2"
                linkNode                                [486 506 508]
                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                                      508
                name                                    "rho_in_2"
                linkNode                                [486 507 509]
                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                                      509
                name                                    "T_in_2"
                linkNode                                [486 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                                    "m_dot_air_2"
                linkNode                                [486 509 511]
                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                                      511
                name                                    "x_H2O_gas_in_2"
                linkNode                                [486 510 512]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      512
                name                                    "x_CO2_in_2"
                linkNode                                [486 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                                    "x_H2O_liq_in_2"
                linkNode                                [486 512 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              514
                name            "Valve_Comp_/Embedded\n"
                                        "MATLA Function1"
                machine         1
                chart           486
        }

        chart {
                id                                                      515
                name                                                    "Duct_/Vol_2D/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [255.45 318.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 516 0 0]
                firstTransition                                         518
                firstJunction                                           517
                viewObj                                                 515
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               519
                chartFileNumber                                         20
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      516
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   515
                treeNode                                [515 0 0 0]
                superState                              SUBCHART
                subviewer                               515
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 137 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                      517
                position                [23.5747 49.5747 7]
                chart                   515
                linkNode                [515 0 0]
                subviewer               515
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      518
                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                      517
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   515
                linkNode                [515 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               515
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      519
                name                                    "V"
                linkNode                                [515 0 520]
                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                                      520
                name                                    "p_init"
                linkNode                                [515 519 521]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      521
                name                                    "T_init"
                linkNode                                [515 520 522]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      522
                name                                    "x_H2O_gas_init"
                linkNode                                [515 521 523]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      523
                name                                    "x_CO2_init"
                linkNode                                [515 522 524]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      524
                name                                    "x_H2O_liq_init"
                linkNode                                [515 523 525]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      525
                name                                    "m_air_init"
                linkNode                                [515 524 526]
                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                                      526
                name                                    "m_H2O_gas_init"
                linkNode                                [515 525 527]
                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                                      527
                name                                    "m_CO2_init"
                linkNode                                [515 526 528]
                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                                      528
                name                                    "m_H2O_liq_init"
                linkNode                                [515 527 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              529
                name            "Duct_/Vol_2D/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           515
        }

        chart {
                id                                                      530
                name                                                    "Duct_10x_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [297.45 324.15 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 531 0 0]
                firstTransition                                         533
                firstJunction                                           532
                viewObj                                                 530
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               534
                chartFileNumber                                         21
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      531
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   530
                treeNode                                [530 0 0 0]
                superState                              SUBCHART
                subviewer                               530
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D)\n"
                                                "\n"
                                                "V=(pi*(D/2)^2)*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      532
                position                [23.5747 49.5747 7]
                chart                   530
                linkNode                [530 0 0]
                subviewer               530
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      533
                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                      532
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   530
                linkNode                [530 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               530
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      534
                name                                    "L"
                linkNode                                [530 0 535]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      535
                name                                    "D"
                linkNode                                [530 534 536]
                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                                      536
                name                                    "V"
                linkNode                                [530 535 0]
                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
        }

        instance {
                id              537
                name            "Duct_10x_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           530
        }

        chart {
                id                                                      538
                name                                                    "Duct_10x_/FR_2/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 539 0 0]
                firstTransition                                         541
                firstJunction                                           540
                viewObj                                                 538
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               542
                chartFileNumber                                         22
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      539
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   538
                treeNode                                [538 0 0 0]
                superState                              SUBCHART
                subviewer                               538
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      540
                position                [23.5747 49.5747 7]
                chart                   538
                linkNode                [538 0 0]
                subviewer               538
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      541
                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                      540
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   538
                linkNode                [538 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               538
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      542
                name                                    "rho"
                linkNode                                [538 0 543]
                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                                      543
                name                                    "T"
                linkNode                                [538 542 544]
                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                                      544
                name                                    "x_H2O_gas"
                linkNode                                [538 543 545]
                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                                      545
                name                                    "x_CO2"
                linkNode                                [538 544 546]
                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                                      546
                name                                    "x_H2O_liq"
                linkNode                                [538 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                                    "p_1"
                linkNode                                [538 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_dot_air_1"
                linkNode                                [538 547 549]
                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                                      549
                name                                    "p_2"
                linkNode                                [538 548 550]
                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                                      550
                name                                    "D"
                linkNode                                [538 549 551]
                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                                      551
                name                                    "L"
                linkNode                                [538 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                                    "zeta"
                linkNode                                [538 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                                    "mode"
                linkNode                                [538 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                                    "p_in_1"
                linkNode                                [538 553 555]
                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                                      555
                name                                    "rho_in_1"
                linkNode                                [538 554 556]
                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                                      556
                name                                    "T_in_1"
                linkNode                                [538 555 557]
                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                                      557
                name                                    "x_H2O_gas_in_1"
                linkNode                                [538 556 558]
                scope                                   INPUT_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                                    "x_CO2_in_1"
                linkNode                                [538 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                                    "x_H2O_liq_in_1"
                linkNode                                [538 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                                    "p_in_2"
                linkNode                                [538 559 561]
                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                                      561
                name                                    "rho_in_2"
                linkNode                                [538 560 562]
                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                                      562
                name                                    "T_in_2"
                linkNode                                [538 561 563]
                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                                      563
                name                                    "m_dot_air_2"
                linkNode                                [538 562 564]
                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                                      564
                name                                    "x_H2O_gas_in_2"
                linkNode                                [538 563 565]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      565
                name                                    "x_CO2_in_2"
                linkNode                                [538 564 566]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      566
                name                                    "x_H2O_liq_in_2"
                linkNode                                [538 565 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              567
                name            "Duct_10x_/FR_2/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           538
        }

        chart {
                id                                                      568
                name                                                    "Duct_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [311.813 299.45 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 569 0 0]
                firstTransition                                         571
                firstJunction                                           570
                viewObj                                                 568
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               572
                chartFileNumber                                         23
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      569
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   568
                treeNode                                [568 0 0 0]
                superState                              SUBCHART
                subviewer                               568
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D)\n"
                                                "\n"
                                                "V=(pi*(D/2)^2)*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      570
                position                [23.5747 49.5747 7]
                chart                   568
                linkNode                [568 0 0]
                subviewer               568
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      571
                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                      570
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   568
                linkNode                [568 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               568
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      572
                name                                    "L"
                linkNode                                [568 0 573]
                scope                                   INPUT_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                                    "D"
                linkNode                                [568 572 574]
                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                                      574
                name                                    "V"
                linkNode                                [568 573 0]
                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
        }

        instance {
                id              575
                name            "Duct_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           568
        }

        chart {
                id                                                      576
                name                                                    "Duct_/Vol_2D/Embedded_MATLAB_Function_1"
                windowPosition                                          [372.36 226.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 577 0 0]
                firstTransition                                         579
                firstJunction                                           578
                viewObj                                                 576
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               580
                chartFileNumber                                         24
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      577
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   576
                treeNode                                [576 0 0 0]
                superState                              SUBCHART
                subviewer                               576
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      578
                position                [23.5747 49.5747 7]
                chart                   576
                linkNode                [576 0 0]
                subviewer               576
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      579
                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                      578
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   576
                linkNode                [576 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               576
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      580
                name                                    "T"
                linkNode                                [576 0 581]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      581
                name                                    "T_dot"
                linkNode                                [576 580 582]
                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                                      582
                name                                    "m_dot_air"
                linkNode                                [576 581 583]
                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                                      583
                name                                    "m_air"
                linkNode                                [576 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                                    "m_H2O_gas"
                linkNode                                [576 583 585]
                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                                      585
                name                                    "m_CO2"
                linkNode                                [576 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                                    "m_H2O_liq"
                linkNode                                [576 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                                    "T_in_1"
                linkNode                                [576 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                                    "m_dot_air_in_1"
                linkNode                                [576 587 589]
                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                                      589
                name                                    "x_H2O_gas_in_1"
                linkNode                                [576 588 590]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      590
                name                                    "x_CO2_in_1"
                linkNode                                [576 589 591]
                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                                      591
                name                                    "x_H2O_liq_in_1"
                linkNode                                [576 590 592]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      592
                name                                    "T_in_2"
                linkNode                                [576 591 593]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      593
                name                                    "m_dot_air_in_2"
                linkNode                                [576 592 594]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      594
                name                                    "x_H2O_gas_in_2"
                linkNode                                [576 593 595]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      595
                name                                    "x_CO2_in_2"
                linkNode                                [576 594 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                                    "x_H2O_liq_in_2"
                linkNode                                [576 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                                    "Q_dot"
                linkNode                                [576 596 598]
                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                                      598
                name                                    "m_dot_H2O_gas"
                linkNode                                [576 597 599]
                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                                      599
                name                                    "m_dot_CO2"
                linkNode                                [576 598 600]
                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                                      600
                name                                    "m_dot_H2O_liq"
                linkNode                                [576 599 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              601
                name            "Duct_/Vol_2D/Embedded_MATLAB_Function_1"
                machine         1
                chart           576
        }

        chart {
                id                                                      602
                name                                                    "Duct_/Vol_2D/Embedded_MATLAB_Function_2"
                windowPosition                                          [312.288 300.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 603 0 0]
                firstTransition                                         605
                firstJunction                                           604
                viewObj                                                 602
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               606
                chartFileNumber                                         25
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      603
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   602
                treeNode                                [602 0 0 0]
                superState                              SUBCHART
                subviewer                               602
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      604
                position                [23.5747 49.5747 7]
                chart                   602
                linkNode                [602 0 0]
                subviewer               602
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      605
                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                      604
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   602
                linkNode                [602 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               602
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      606
                name                                    "T"
                linkNode                                [602 0 607]
                scope                                   INPUT_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                                    "p"
                linkNode                                [602 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                                    "rho"
                linkNode                                [602 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                                    "m_air"
                linkNode                                [602 608 610]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      610
                name                                    "m_H2O_gas"
                linkNode                                [602 609 611]
                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                                      611
                name                                    "m_CO2"
                linkNode                                [602 610 612]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      612
                name                                    "m_H2O_liq"
                linkNode                                [602 611 613]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      613
                name                                    "V"
                linkNode                                [602 612 614]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      614
                name                                    "x_H2O_gas"
                linkNode                                [602 613 615]
                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                                      615
                name                                    "x_CO2"
                linkNode                                [602 614 616]
                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                                      616
                name                                    "x_H2O_liq"
                linkNode                                [602 615 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              617
                name            "Duct_/Vol_2D/Embedded_MATLAB_Function_2"
                machine         1
                chart           602
        }

        chart {
                id                                                      618
                name                                                    "Duct_10x_/FR_11/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 619 0 0]
                firstTransition                                         621
                firstJunction                                           620
                viewObj                                                 618
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               622
                chartFileNumber                                         26
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      619
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   618
                treeNode                                [618 0 0 0]
                superState                              SUBCHART
                subviewer                               618
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      620
                position                [23.5747 49.5747 7]
                chart                   618
                linkNode                [618 0 0]
                subviewer               618
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      621
                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                      620
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   618
                linkNode                [618 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               618
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      622
                name                                    "rho"
                linkNode                                [618 0 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                                    "T"
                linkNode                                [618 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                                    "x_H2O_gas"
                linkNode                                [618 623 625]
                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                                      625
                name                                    "x_CO2"
                linkNode                                [618 624 626]
                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                                      626
                name                                    "x_H2O_liq"
                linkNode                                [618 625 627]
                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                                      627
                name                                    "p_1"
                linkNode                                [618 626 628]
                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                                      628
                name                                    "m_dot_air_1"
                linkNode                                [618 627 629]
                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                                      629
                name                                    "p_2"
                linkNode                                [618 628 630]
                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                                      630
                name                                    "D"
                linkNode                                [618 629 631]
                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                                      631
                name                                    "L"
                linkNode                                [618 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                                    "zeta"
                linkNode                                [618 631 633]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      633
                name                                    "mode"
                linkNode                                [618 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                                    "p_in_1"
                linkNode                                [618 633 635]
                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                                      635
                name                                    "rho_in_1"
                linkNode                                [618 634 636]
                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                                      636
                name                                    "T_in_1"
                linkNode                                [618 635 637]
                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                                      637
                name                                    "x_H2O_gas_in_1"
                linkNode                                [618 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                                    "x_CO2_in_1"
                linkNode                                [618 637 639]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      639
                name                                    "x_H2O_liq_in_1"
                linkNode                                [618 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                                    "p_in_2"
                linkNode                                [618 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                                    "rho_in_2"
                linkNode                                [618 640 642]
                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                                      642
                name                                    "T_in_2"
                linkNode                                [618 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_air_2"
                linkNode                                [618 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                                    "x_H2O_gas_in_2"
                linkNode                                [618 643 645]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      645
                name                                    "x_CO2_in_2"
                linkNode                                [618 644 646]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      646
                name                                    "x_H2O_liq_in_2"
                linkNode                                [618 645 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              647
                name            "Duct_10x_/FR_11/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           618
        }

        chart {
                id                                                      648
                name                                                    "Duct_10x_/Vol_2D_2/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 649 0 0]
                firstTransition                                         651
                firstJunction                                           650
                viewObj                                                 648
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               652
                chartFileNumber                                         27
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      649
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   648
                treeNode                                [648 0 0 0]
                superState                              SUBCHART
                subviewer                               648
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      650
                position                [23.5747 49.5747 7]
                chart                   648
                linkNode                [648 0 0]
                subviewer               648
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      651
                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                      650
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   648
                linkNode                [648 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               648
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      652
                name                                    "V"
                linkNode                                [648 0 653]
                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                                      653
                name                                    "p_init"
                linkNode                                [648 652 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_init"
                linkNode                                [648 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                                    "x_H2O_gas_init"
                linkNode                                [648 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                                    "x_CO2_init"
                linkNode                                [648 655 657]
                scope                                   INPUT_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                                    "x_H2O_liq_init"
                linkNode                                [648 656 658]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      658
                name                                    "m_air_init"
                linkNode                                [648 657 659]
                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                                      659
                name                                    "m_H2O_gas_init"
                linkNode                                [648 658 660]
                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                                      660
                name                                    "m_CO2_init"
                linkNode                                [648 659 661]
                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                                      661
                name                                    "m_H2O_liq_init"
                linkNode                                [648 660 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              662
                name            "Duct_10x_/Vol_2D_2/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           648
        }

        chart {
                id                                                      663
                name                                                    "Duct_10x_/Vol_2D_2/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 664 0 0]
                firstTransition                                         666
                firstJunction                                           665
                viewObj                                                 663
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               667
                chartFileNumber                                         28
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      664
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   663
                treeNode                                [663 0 0 0]
                superState                              SUBCHART
                subviewer                               663
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      665
                position                [23.5747 49.5747 7]
                chart                   663
                linkNode                [663 0 0]
                subviewer               663
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      666
                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                      665
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   663
                linkNode                [663 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               663
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      667
                name                                    "T"
                linkNode                                [663 0 668]
                scope                                   INPUT_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                                    "T_dot"
                linkNode                                [663 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                                    "m_dot_air"
                linkNode                                [663 668 670]
                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                                      670
                name                                    "m_air"
                linkNode                                [663 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                                    "m_H2O_gas"
                linkNode                                [663 670 672]
                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                                      672
                name                                    "m_CO2"
                linkNode                                [663 671 673]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      673
                name                                    "m_H2O_liq"
                linkNode                                [663 672 674]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      674
                name                                    "T_in_1"
                linkNode                                [663 673 675]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      675
                name                                    "m_dot_air_in_1"
                linkNode                                [663 674 676]
                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                                      676
                name                                    "x_H2O_gas_in_1"
                linkNode                                [663 675 677]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      677
                name                                    "x_CO2_in_1"
                linkNode                                [663 676 678]
                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                                      678
                name                                    "x_H2O_liq_in_1"
                linkNode                                [663 677 679]
                scope                                   INPUT_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                                    "T_in_2"
                linkNode                                [663 678 680]
                scope                                   INPUT_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                                    "m_dot_air_in_2"
                linkNode                                [663 679 681]
                scope                                   INPUT_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                                    "x_H2O_gas_in_2"
                linkNode                                [663 680 682]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      682
                name                                    "x_CO2_in_2"
                linkNode                                [663 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                                    "x_H2O_liq_in_2"
                linkNode                                [663 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                                    "Q_dot"
                linkNode                                [663 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                                    "m_dot_H2O_gas"
                linkNode                                [663 684 686]
                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                                      686
                name                                    "m_dot_CO2"
                linkNode                                [663 685 687]
                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                                      687
                name                                    "m_dot_H2O_liq"
                linkNode                                [663 686 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              688
                name            "Duct_10x_/Vol_2D_2/Embedded_MATLAB_Function_1"
                machine         1
                chart           663
        }

        chart {
                id                                                      689
                name                                                    "Duct_10x_/Vol_2D_2/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 690 0 0]
                firstTransition                                         692
                firstJunction                                           691
                viewObj                                                 689
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               693
                chartFileNumber                                         29
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      690
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   689
                treeNode                                [689 0 0 0]
                superState                              SUBCHART
                subviewer                               689
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      691
                position                [23.5747 49.5747 7]
                chart                   689
                linkNode                [689 0 0]
                subviewer               689
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      692
                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                      691
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   689
                linkNode                [689 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               689
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      693
                name                                    "T"
                linkNode                                [689 0 694]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      694
                name                                    "p"
                linkNode                                [689 693 695]
                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                                      695
                name                                    "rho"
                linkNode                                [689 694 696]
                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                                      696
                name                                    "m_air"
                linkNode                                [689 695 697]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      697
                name                                    "m_H2O_gas"
                linkNode                                [689 696 698]
                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                                      698
                name                                    "m_CO2"
                linkNode                                [689 697 699]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      699
                name                                    "m_H2O_liq"
                linkNode                                [689 698 700]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      700
                name                                    "V"
                linkNode                                [689 699 701]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      701
                name                                    "x_H2O_gas"
                linkNode                                [689 700 702]
                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                                      702
                name                                    "x_CO2"
                linkNode                                [689 701 703]
                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                                      703
                name                                    "x_H2O_liq"
                linkNode                                [689 702 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              704
                name            "Duct_10x_/Vol_2D_2/Embedded_MATLAB_Function_2"
                machine         1
                chart           689
        }

        chart {
                id                                                      705
                name                                                    "Duct_10x_/FR_3/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 706 0 0]
                firstTransition                                         708
                firstJunction                                           707
                viewObj                                                 705
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               709
                chartFileNumber                                         30
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      706
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   705
                treeNode                                [705 0 0 0]
                superState                              SUBCHART
                subviewer                               705
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      707
                position                [23.5747 49.5747 7]
                chart                   705
                linkNode                [705 0 0]
                subviewer               705
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      708
                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                      707
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   705
                linkNode                [705 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               705
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      709
                name                                    "rho"
                linkNode                                [705 0 710]
                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                                      710
                name                                    "T"
                linkNode                                [705 709 711]
                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                                      711
                name                                    "x_H2O_gas"
                linkNode                                [705 710 712]
                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                                      712
                name                                    "x_CO2"
                linkNode                                [705 711 713]
                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                                      713
                name                                    "x_H2O_liq"
                linkNode                                [705 712 714]
                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                                      714
                name                                    "p_1"
                linkNode                                [705 713 715]
                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                                      715
                name                                    "m_dot_air_1"
                linkNode                                [705 714 716]
                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                                      716
                name                                    "p_2"
                linkNode                                [705 715 717]
                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                                      717
                name                                    "D"
                linkNode                                [705 716 718]
                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                                      718
                name                                    "L"
                linkNode                                [705 717 719]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      719
                name                                    "zeta"
                linkNode                                [705 718 720]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      720
                name                                    "mode"
                linkNode                                [705 719 721]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      721
                name                                    "p_in_1"
                linkNode                                [705 720 722]
                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                                      722
                name                                    "rho_in_1"
                linkNode                                [705 721 723]
                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                                      723
                name                                    "T_in_1"
                linkNode                                [705 722 724]
                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                                      724
                name                                    "x_H2O_gas_in_1"
                linkNode                                [705 723 725]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      725
                name                                    "x_CO2_in_1"
                linkNode                                [705 724 726]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      726
                name                                    "x_H2O_liq_in_1"
                linkNode                                [705 725 727]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      727
                name                                    "p_in_2"
                linkNode                                [705 726 728]
                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                                      728
                name                                    "rho_in_2"
                linkNode                                [705 727 729]
                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                                      729
                name                                    "T_in_2"
                linkNode                                [705 728 730]
                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                                      730
                name                                    "m_dot_air_2"
                linkNode                                [705 729 731]
                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                                      731
                name                                    "x_H2O_gas_in_2"
                linkNode                                [705 730 732]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      732
                name                                    "x_CO2_in_2"
                linkNode                                [705 731 733]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      733
                name                                    "x_H2O_liq_in_2"
                linkNode                                [705 732 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              734
                name            "Duct_10x_/FR_3/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           705
        }

        chart {
                id                                                      735
                name                                                    "Duct_10x_/Vol_2D_3/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 736 0 0]
                firstTransition                                         738
                firstJunction                                           737
                viewObj                                                 735
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               739
                chartFileNumber                                         31
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      736
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   735
                treeNode                                [735 0 0 0]
                superState                              SUBCHART
                subviewer                               735
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      737
                position                [23.5747 49.5747 7]
                chart                   735
                linkNode                [735 0 0]
                subviewer               735
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      738
                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                      737
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   735
                linkNode                [735 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               735
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      739
                name                                    "V"
                linkNode                                [735 0 740]
                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                                      740
                name                                    "p_init"
                linkNode                                [735 739 741]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      741
                name                                    "T_init"
                linkNode                                [735 740 742]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      742
                name                                    "x_H2O_gas_init"
                linkNode                                [735 741 743]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      743
                name                                    "x_CO2_init"
                linkNode                                [735 742 744]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      744
                name                                    "x_H2O_liq_init"
                linkNode                                [735 743 745]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      745
                name                                    "m_air_init"
                linkNode                                [735 744 746]
                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                                      746
                name                                    "m_H2O_gas_init"
                linkNode                                [735 745 747]
                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                                      747
                name                                    "m_CO2_init"
                linkNode                                [735 746 748]
                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                                      748
                name                                    "m_H2O_liq_init"
                linkNode                                [735 747 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              749
                name            "Duct_10x_/Vol_2D_3/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           735
        }

        chart {
                id                                                      750
                name                                                    "Duct_10x_/Vol_2D_3/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 751 0 0]
                firstTransition                                         753
                firstJunction                                           752
                viewObj                                                 750
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               754
                chartFileNumber                                         32
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      751
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   750
                treeNode                                [750 0 0 0]
                superState                              SUBCHART
                subviewer                               750
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      752
                position                [23.5747 49.5747 7]
                chart                   750
                linkNode                [750 0 0]
                subviewer               750
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      753
                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                      752
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   750
                linkNode                [750 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               750
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      754
                name                                    "T"
                linkNode                                [750 0 755]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      755
                name                                    "T_dot"
                linkNode                                [750 754 756]
                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                                      756
                name                                    "m_dot_air"
                linkNode                                [750 755 757]
                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                                      757
                name                                    "m_air"
                linkNode                                [750 756 758]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      758
                name                                    "m_H2O_gas"
                linkNode                                [750 757 759]
                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                                      759
                name                                    "m_CO2"
                linkNode                                [750 758 760]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      760
                name                                    "m_H2O_liq"
                linkNode                                [750 759 761]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      761
                name                                    "T_in_1"
                linkNode                                [750 760 762]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      762
                name                                    "m_dot_air_in_1"
                linkNode                                [750 761 763]
                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                                      763
                name                                    "x_H2O_gas_in_1"
                linkNode                                [750 762 764]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      764
                name                                    "x_CO2_in_1"
                linkNode                                [750 763 765]
                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                                      765
                name                                    "x_H2O_liq_in_1"
                linkNode                                [750 764 766]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      766
                name                                    "T_in_2"
                linkNode                                [750 765 767]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      767
                name                                    "m_dot_air_in_2"
                linkNode                                [750 766 768]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      768
                name                                    "x_H2O_gas_in_2"
                linkNode                                [750 767 769]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      769
                name                                    "x_CO2_in_2"
                linkNode                                [750 768 770]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      770
                name                                    "x_H2O_liq_in_2"
                linkNode                                [750 769 771]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      771
                name                                    "Q_dot"
                linkNode                                [750 770 772]
                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                                      772
                name                                    "m_dot_H2O_gas"
                linkNode                                [750 771 773]
                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                                      773
                name                                    "m_dot_CO2"
                linkNode                                [750 772 774]
                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                                      774
                name                                    "m_dot_H2O_liq"
                linkNode                                [750 773 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              775
                name            "Duct_10x_/Vol_2D_3/Embedded_MATLAB_Function_1"
                machine         1
                chart           750
        }

        chart {
                id                                                      776
                name                                                    "Duct_10x_/Vol_2D_3/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 777 0 0]
                firstTransition                                         779
                firstJunction                                           778
                viewObj                                                 776
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               780
                chartFileNumber                                         33
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      777
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   776
                treeNode                                [776 0 0 0]
                superState                              SUBCHART
                subviewer                               776
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      778
                position                [23.5747 49.5747 7]
                chart                   776
                linkNode                [776 0 0]
                subviewer               776
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      779
                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                      778
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   776
                linkNode                [776 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               776
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      780
                name                                    "T"
                linkNode                                [776 0 781]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      781
                name                                    "p"
                linkNode                                [776 780 782]
                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                                      782
                name                                    "rho"
                linkNode                                [776 781 783]
                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                                      783
                name                                    "m_air"
                linkNode                                [776 782 784]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      784
                name                                    "m_H2O_gas"
                linkNode                                [776 783 785]
                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                                      785
                name                                    "m_CO2"
                linkNode                                [776 784 786]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      786
                name                                    "m_H2O_liq"
                linkNode                                [776 785 787]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      787
                name                                    "V"
                linkNode                                [776 786 788]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      788
                name                                    "x_H2O_gas"
                linkNode                                [776 787 789]
                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                                      789
                name                                    "x_CO2"
                linkNode                                [776 788 790]
                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                                      790
                name                                    "x_H2O_liq"
                linkNode                                [776 789 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              791
                name            "Duct_10x_/Vol_2D_3/Embedded_MATLAB_Function_2"
                machine         1
                chart           776
        }

        chart {
                id                                                      792
                name                                                    "Duct_10x_/FR_4/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 793 0 0]
                firstTransition                                         795
                firstJunction                                           794
                viewObj                                                 792
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               796
                chartFileNumber                                         34
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      793
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   792
                treeNode                                [792 0 0 0]
                superState                              SUBCHART
                subviewer                               792
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      794
                position                [23.5747 49.5747 7]
                chart                   792
                linkNode                [792 0 0]
                subviewer               792
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      795
                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                      794
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   792
                linkNode                [792 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               792
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      796
                name                                    "rho"
                linkNode                                [792 0 797]
                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                                      797
                name                                    "T"
                linkNode                                [792 796 798]
                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                                      798
                name                                    "x_H2O_gas"
                linkNode                                [792 797 799]
                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                                      799
                name                                    "x_CO2"
                linkNode                                [792 798 800]
                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                                      800
                name                                    "x_H2O_liq"
                linkNode                                [792 799 801]
                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                                      801
                name                                    "p_1"
                linkNode                                [792 800 802]
                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                                      802
                name                                    "m_dot_air_1"
                linkNode                                [792 801 803]
                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                                      803
                name                                    "p_2"
                linkNode                                [792 802 804]
                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                                      804
                name                                    "D"
                linkNode                                [792 803 805]
                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                                      805
                name                                    "L"
                linkNode                                [792 804 806]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      806
                name                                    "zeta"
                linkNode                                [792 805 807]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      807
                name                                    "mode"
                linkNode                                [792 806 808]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      808
                name                                    "p_in_1"
                linkNode                                [792 807 809]
                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                                      809
                name                                    "rho_in_1"
                linkNode                                [792 808 810]
                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                                      810
                name                                    "T_in_1"
                linkNode                                [792 809 811]
                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                                      811
                name                                    "x_H2O_gas_in_1"
                linkNode                                [792 810 812]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      812
                name                                    "x_CO2_in_1"
                linkNode                                [792 811 813]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      813
                name                                    "x_H2O_liq_in_1"
                linkNode                                [792 812 814]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      814
                name                                    "p_in_2"
                linkNode                                [792 813 815]
                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                                      815
                name                                    "rho_in_2"
                linkNode                                [792 814 816]
                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                                      816
                name                                    "T_in_2"
                linkNode                                [792 815 817]
                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                                      817
                name                                    "m_dot_air_2"
                linkNode                                [792 816 818]
                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                                      818
                name                                    "x_H2O_gas_in_2"
                linkNode                                [792 817 819]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      819
                name                                    "x_CO2_in_2"
                linkNode                                [792 818 820]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      820
                name                                    "x_H2O_liq_in_2"
                linkNode                                [792 819 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              821
                name            "Duct_10x_/FR_4/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           792
        }

        chart {
                id                                                      822
                name                                                    "Duct_10x_/Vol_2D_4/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 823 0 0]
                firstTransition                                         825
                firstJunction                                           824
                viewObj                                                 822
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               826
                chartFileNumber                                         35
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      823
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   822
                treeNode                                [822 0 0 0]
                superState                              SUBCHART
                subviewer                               822
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      824
                position                [23.5747 49.5747 7]
                chart                   822
                linkNode                [822 0 0]
                subviewer               822
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      825
                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                      824
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   822
                linkNode                [822 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               822
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      826
                name                                    "V"
                linkNode                                [822 0 827]
                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                                      827
                name                                    "p_init"
                linkNode                                [822 826 828]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      828
                name                                    "T_init"
                linkNode                                [822 827 829]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      829
                name                                    "x_H2O_gas_init"
                linkNode                                [822 828 830]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      830
                name                                    "x_CO2_init"
                linkNode                                [822 829 831]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      831
                name                                    "x_H2O_liq_init"
                linkNode                                [822 830 832]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      832
                name                                    "m_air_init"
                linkNode                                [822 831 833]
                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                                      833
                name                                    "m_H2O_gas_init"
                linkNode                                [822 832 834]
                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                                      834
                name                                    "m_CO2_init"
                linkNode                                [822 833 835]
                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                                      835
                name                                    "m_H2O_liq_init"
                linkNode                                [822 834 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              836
                name            "Duct_10x_/Vol_2D_4/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           822
        }

        chart {
                id                                                      837
                name                                                    "Duct_10x_/Vol_2D_4/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 838 0 0]
                firstTransition                                         840
                firstJunction                                           839
                viewObj                                                 837
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               841
                chartFileNumber                                         36
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      838
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   837
                treeNode                                [837 0 0 0]
                superState                              SUBCHART
                subviewer                               837
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      839
                position                [23.5747 49.5747 7]
                chart                   837
                linkNode                [837 0 0]
                subviewer               837
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      840
                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                      839
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   837
                linkNode                [837 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               837
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      841
                name                                    "T"
                linkNode                                [837 0 842]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      842
                name                                    "T_dot"
                linkNode                                [837 841 843]
                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                                      843
                name                                    "m_dot_air"
                linkNode                                [837 842 844]
                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                                      844
                name                                    "m_air"
                linkNode                                [837 843 845]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      845
                name                                    "m_H2O_gas"
                linkNode                                [837 844 846]
                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                                      846
                name                                    "m_CO2"
                linkNode                                [837 845 847]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      847
                name                                    "m_H2O_liq"
                linkNode                                [837 846 848]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      848
                name                                    "T_in_1"
                linkNode                                [837 847 849]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      849
                name                                    "m_dot_air_in_1"
                linkNode                                [837 848 850]
                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                                      850
                name                                    "x_H2O_gas_in_1"
                linkNode                                [837 849 851]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      851
                name                                    "x_CO2_in_1"
                linkNode                                [837 850 852]
                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                                      852
                name                                    "x_H2O_liq_in_1"
                linkNode                                [837 851 853]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      853
                name                                    "T_in_2"
                linkNode                                [837 852 854]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      854
                name                                    "m_dot_air_in_2"
                linkNode                                [837 853 855]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      855
                name                                    "x_H2O_gas_in_2"
                linkNode                                [837 854 856]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      856
                name                                    "x_CO2_in_2"
                linkNode                                [837 855 857]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      857
                name                                    "x_H2O_liq_in_2"
                linkNode                                [837 856 858]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      858
                name                                    "Q_dot"
                linkNode                                [837 857 859]
                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                                      859
                name                                    "m_dot_H2O_gas"
                linkNode                                [837 858 860]
                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                                      860
                name                                    "m_dot_CO2"
                linkNode                                [837 859 861]
                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                                      861
                name                                    "m_dot_H2O_liq"
                linkNode                                [837 860 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              862
                name            "Duct_10x_/Vol_2D_4/Embedded_MATLAB_Function_1"
                machine         1
                chart           837
        }

        chart {
                id                                                      863
                name                                                    "Duct_10x_/Vol_2D_4/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 864 0 0]
                firstTransition                                         866
                firstJunction                                           865
                viewObj                                                 863
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               867
                chartFileNumber                                         37
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      864
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   863
                treeNode                                [863 0 0 0]
                superState                              SUBCHART
                subviewer                               863
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      865
                position                [23.5747 49.5747 7]
                chart                   863
                linkNode                [863 0 0]
                subviewer               863
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      866
                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                      865
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   863
                linkNode                [863 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               863
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      867
                name                                    "T"
                linkNode                                [863 0 868]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      868
                name                                    "p"
                linkNode                                [863 867 869]
                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                                      869
                name                                    "rho"
                linkNode                                [863 868 870]
                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                                      870
                name                                    "m_air"
                linkNode                                [863 869 871]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      871
                name                                    "m_H2O_gas"
                linkNode                                [863 870 872]
                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                                      872
                name                                    "m_CO2"
                linkNode                                [863 871 873]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      873
                name                                    "m_H2O_liq"
                linkNode                                [863 872 874]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      874
                name                                    "V"
                linkNode                                [863 873 875]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      875
                name                                    "x_H2O_gas"
                linkNode                                [863 874 876]
                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                                      876
                name                                    "x_CO2"
                linkNode                                [863 875 877]
                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                                      877
                name                                    "x_H2O_liq"
                linkNode                                [863 876 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              878
                name            "Duct_10x_/Vol_2D_4/Embedded_MATLAB_Function_2"
                machine         1
                chart           863
        }

        chart {
                id                                                      879
                name                                                    "Duct_10x_/FR_5/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 880 0 0]
                firstTransition                                         882
                firstJunction                                           881
                viewObj                                                 879
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               883
                chartFileNumber                                         38
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      880
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   879
                treeNode                                [879 0 0 0]
                superState                              SUBCHART
                subviewer                               879
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      881
                position                [23.5747 49.5747 7]
                chart                   879
                linkNode                [879 0 0]
                subviewer               879
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      882
                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                      881
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   879
                linkNode                [879 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               879
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      883
                name                                    "rho"
                linkNode                                [879 0 884]
                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                                      884
                name                                    "T"
                linkNode                                [879 883 885]
                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                                      885
                name                                    "x_H2O_gas"
                linkNode                                [879 884 886]
                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                                      886
                name                                    "x_CO2"
                linkNode                                [879 885 887]
                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                                      887
                name                                    "x_H2O_liq"
                linkNode                                [879 886 888]
                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                                      888
                name                                    "p_1"
                linkNode                                [879 887 889]
                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                                      889
                name                                    "m_dot_air_1"
                linkNode                                [879 888 890]
                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                                      890
                name                                    "p_2"
                linkNode                                [879 889 891]
                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                                      891
                name                                    "D"
                linkNode                                [879 890 892]
                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                                      892
                name                                    "L"
                linkNode                                [879 891 893]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      893
                name                                    "zeta"
                linkNode                                [879 892 894]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      894
                name                                    "mode"
                linkNode                                [879 893 895]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      895
                name                                    "p_in_1"
                linkNode                                [879 894 896]
                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                                      896
                name                                    "rho_in_1"
                linkNode                                [879 895 897]
                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                                      897
                name                                    "T_in_1"
                linkNode                                [879 896 898]
                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                                      898
                name                                    "x_H2O_gas_in_1"
                linkNode                                [879 897 899]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      899
                name                                    "x_CO2_in_1"
                linkNode                                [879 898 900]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      900
                name                                    "x_H2O_liq_in_1"
                linkNode                                [879 899 901]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      901
                name                                    "p_in_2"
                linkNode                                [879 900 902]
                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                                      902
                name                                    "rho_in_2"
                linkNode                                [879 901 903]
                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                                      903
                name                                    "T_in_2"
                linkNode                                [879 902 904]
                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                                      904
                name                                    "m_dot_air_2"
                linkNode                                [879 903 905]
                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                                      905
                name                                    "x_H2O_gas_in_2"
                linkNode                                [879 904 906]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      906
                name                                    "x_CO2_in_2"
                linkNode                                [879 905 907]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      907
                name                                    "x_H2O_liq_in_2"
                linkNode                                [879 906 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              908
                name            "Duct_10x_/FR_5/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           879
        }

        chart {
                id                                                      909
                name                                                    "Duct_10x_/FR_6/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 910 0 0]
                firstTransition                                         912
                firstJunction                                           911
                viewObj                                                 909
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               913
                chartFileNumber                                         39
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      910
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   909
                treeNode                                [909 0 0 0]
                superState                              SUBCHART
                subviewer                               909
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      911
                position                [23.5747 49.5747 7]
                chart                   909
                linkNode                [909 0 0]
                subviewer               909
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      912
                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                      911
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   909
                linkNode                [909 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               909
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      913
                name                                    "rho"
                linkNode                                [909 0 914]
                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                                      914
                name                                    "T"
                linkNode                                [909 913 915]
                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                                      915
                name                                    "x_H2O_gas"
                linkNode                                [909 914 916]
                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                                      916
                name                                    "x_CO2"
                linkNode                                [909 915 917]
                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                                      917
                name                                    "x_H2O_liq"
                linkNode                                [909 916 918]
                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                                      918
                name                                    "p_1"
                linkNode                                [909 917 919]
                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                                      919
                name                                    "m_dot_air_1"
                linkNode                                [909 918 920]
                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                                      920
                name                                    "p_2"
                linkNode                                [909 919 921]
                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                                      921
                name                                    "D"
                linkNode                                [909 920 922]
                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                                      922
                name                                    "L"
                linkNode                                [909 921 923]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      923
                name                                    "zeta"
                linkNode                                [909 922 924]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      924
                name                                    "mode"
                linkNode                                [909 923 925]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      925
                name                                    "p_in_1"
                linkNode                                [909 924 926]
                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                                      926
                name                                    "rho_in_1"
                linkNode                                [909 925 927]
                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                                      927
                name                                    "T_in_1"
                linkNode                                [909 926 928]
                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                                      928
                name                                    "x_H2O_gas_in_1"
                linkNode                                [909 927 929]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      929
                name                                    "x_CO2_in_1"
                linkNode                                [909 928 930]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      930
                name                                    "x_H2O_liq_in_1"
                linkNode                                [909 929 931]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      931
                name                                    "p_in_2"
                linkNode                                [909 930 932]
                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                                      932
                name                                    "rho_in_2"
                linkNode                                [909 931 933]
                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                                      933
                name                                    "T_in_2"
                linkNode                                [909 932 934]
                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                                      934
                name                                    "m_dot_air_2"
                linkNode                                [909 933 935]
                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                                      935
                name                                    "x_H2O_gas_in_2"
                linkNode                                [909 934 936]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      936
                name                                    "x_CO2_in_2"
                linkNode                                [909 935 937]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      937
                name                                    "x_H2O_liq_in_2"
                linkNode                                [909 936 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              938
                name            "Duct_10x_/FR_6/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           909
        }

        chart {
                id                                                      939
                name                                                    "Duct_10x_/FR_7/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 940 0 0]
                firstTransition                                         942
                firstJunction                                           941
                viewObj                                                 939
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               943
                chartFileNumber                                         40
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      940
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   939
                treeNode                                [939 0 0 0]
                superState                              SUBCHART
                subviewer                               939
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      941
                position                [23.5747 49.5747 7]
                chart                   939
                linkNode                [939 0 0]
                subviewer               939
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      942
                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                      941
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   939
                linkNode                [939 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               939
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      943
                name                                    "rho"
                linkNode                                [939 0 944]
                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                                      944
                name                                    "T"
                linkNode                                [939 943 945]
                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                                      945
                name                                    "x_H2O_gas"
                linkNode                                [939 944 946]
                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                                      946
                name                                    "x_CO2"
                linkNode                                [939 945 947]
                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                                      947
                name                                    "x_H2O_liq"
                linkNode                                [939 946 948]
                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                                      948
                name                                    "p_1"
                linkNode                                [939 947 949]
                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                                      949
                name                                    "m_dot_air_1"
                linkNode                                [939 948 950]
                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                                      950
                name                                    "p_2"
                linkNode                                [939 949 951]
                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                                      951
                name                                    "D"
                linkNode                                [939 950 952]
                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                                      952
                name                                    "L"
                linkNode                                [939 951 953]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      953
                name                                    "zeta"
                linkNode                                [939 952 954]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      954
                name                                    "mode"
                linkNode                                [939 953 955]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      955
                name                                    "p_in_1"
                linkNode                                [939 954 956]
                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                                      956
                name                                    "rho_in_1"
                linkNode                                [939 955 957]
                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                                      957
                name                                    "T_in_1"
                linkNode                                [939 956 958]
                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                                      958
                name                                    "x_H2O_gas_in_1"
                linkNode                                [939 957 959]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      959
                name                                    "x_CO2_in_1"
                linkNode                                [939 958 960]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      960
                name                                    "x_H2O_liq_in_1"
                linkNode                                [939 959 961]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      961
                name                                    "p_in_2"
                linkNode                                [939 960 962]
                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                                      962
                name                                    "rho_in_2"
                linkNode                                [939 961 963]
                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                                      963
                name                                    "T_in_2"
                linkNode                                [939 962 964]
                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                                      964
                name                                    "m_dot_air_2"
                linkNode                                [939 963 965]
                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                                      965
                name                                    "x_H2O_gas_in_2"
                linkNode                                [939 964 966]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      966
                name                                    "x_CO2_in_2"
                linkNode                                [939 965 967]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      967
                name                                    "x_H2O_liq_in_2"
                linkNode                                [939 966 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              968
                name            "Duct_10x_/FR_7/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           939
        }

        chart {
                id                                                      969
                name                                                    "Duct_10x_/Vol_2D_5/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 970 0 0]
                firstTransition                                         972
                firstJunction                                           971
                viewObj                                                 969
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               973
                chartFileNumber                                         41
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      970
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   969
                treeNode                                [969 0 0 0]
                superState                              SUBCHART
                subviewer                               969
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      971
                position                [23.5747 49.5747 7]
                chart                   969
                linkNode                [969 0 0]
                subviewer               969
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      972
                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                      971
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   969
                linkNode                [969 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               969
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      973
                name                                    "V"
                linkNode                                [969 0 974]
                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                                      974
                name                                    "p_init"
                linkNode                                [969 973 975]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      975
                name                                    "T_init"
                linkNode                                [969 974 976]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      976
                name                                    "x_H2O_gas_init"
                linkNode                                [969 975 977]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      977
                name                                    "x_CO2_init"
                linkNode                                [969 976 978]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      978
                name                                    "x_H2O_liq_init"
                linkNode                                [969 977 979]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      979
                name                                    "m_air_init"
                linkNode                                [969 978 980]
                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                                      980
                name                                    "m_H2O_gas_init"
                linkNode                                [969 979 981]
                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                                      981
                name                                    "m_CO2_init"
                linkNode                                [969 980 982]
                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                                      982
                name                                    "m_H2O_liq_init"
                linkNode                                [969 981 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              983
                name            "Duct_10x_/Vol_2D_5/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           969
        }

        chart {
                id                                                      984
                name                                                    "Duct_10x_/Vol_2D_5/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 985 0 0]
                firstTransition                                         987
                firstJunction                                           986
                viewObj                                                 984
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               988
                chartFileNumber                                         42
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      985
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   984
                treeNode                                [984 0 0 0]
                superState                              SUBCHART
                subviewer                               984
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      986
                position                [23.5747 49.5747 7]
                chart                   984
                linkNode                [984 0 0]
                subviewer               984
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      987
                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                      986
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   984
                linkNode                [984 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               984
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      988
                name                                    "T"
                linkNode                                [984 0 989]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      989
                name                                    "T_dot"
                linkNode                                [984 988 990]
                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                                      990
                name                                    "m_dot_air"
                linkNode                                [984 989 991]
                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                                      991
                name                                    "m_air"
                linkNode                                [984 990 992]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      992
                name                                    "m_H2O_gas"
                linkNode                                [984 991 993]
                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                                      993
                name                                    "m_CO2"
                linkNode                                [984 992 994]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      994
                name                                    "m_H2O_liq"
                linkNode                                [984 993 995]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      995
                name                                    "T_in_1"
                linkNode                                [984 994 996]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      996
                name                                    "m_dot_air_in_1"
                linkNode                                [984 995 997]
                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                                      997
                name                                    "x_H2O_gas_in_1"
                linkNode                                [984 996 998]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      998
                name                                    "x_CO2_in_1"
                linkNode                                [984 997 999]
                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                                      999
                name                                    "x_H2O_liq_in_1"
                linkNode                                [984 998 1000]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1000
                name                                    "T_in_2"
                linkNode                                [984 999 1001]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1001
                name                                    "m_dot_air_in_2"
                linkNode                                [984 1000 1002]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1002
                name                                    "x_H2O_gas_in_2"
                linkNode                                [984 1001 1003]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1003
                name                                    "x_CO2_in_2"
                linkNode                                [984 1002 1004]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1004
                name                                    "x_H2O_liq_in_2"
                linkNode                                [984 1003 1005]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1005
                name                                    "Q_dot"
                linkNode                                [984 1004 1006]
                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                                      1006
                name                                    "m_dot_H2O_gas"
                linkNode                                [984 1005 1007]
                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                                      1007
                name                                    "m_dot_CO2"
                linkNode                                [984 1006 1008]
                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                                      1008
                name                                    "m_dot_H2O_liq"
                linkNode                                [984 1007 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              1009
                name            "Duct_10x_/Vol_2D_5/Embedded_MATLAB_Function_1"
                machine         1
                chart           984
        }

        chart {
                id                                                      1010
                name                                                    "Duct_10x_/Vol_2D_6/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1011 0 0]
                firstTransition                                         1013
                firstJunction                                           1012
                viewObj                                                 1010
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1014
                chartFileNumber                                         43
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1011
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1010
                treeNode                                [1010 0 0 0]
                superState                              SUBCHART
                subviewer                               1010
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1012
                position                [23.5747 49.5747 7]
                chart                   1010
                linkNode                [1010 0 0]
                subviewer               1010
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1013
                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                      1012
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1010
                linkNode                [1010 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1010
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1014
                name                                    "V"
                linkNode                                [1010 0 1015]
                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                                      1015
                name                                    "p_init"
                linkNode                                [1010 1014 1016]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1016
                name                                    "T_init"
                linkNode                                [1010 1015 1017]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1017
                name                                    "x_H2O_gas_init"
                linkNode                                [1010 1016 1018]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1018
                name                                    "x_CO2_init"
                linkNode                                [1010 1017 1019]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1019
                name                                    "x_H2O_liq_init"
                linkNode                                [1010 1018 1020]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1020
                name                                    "m_air_init"
                linkNode                                [1010 1019 1021]
                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                                      1021
                name                                    "m_H2O_gas_init"
                linkNode                                [1010 1020 1022]
                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                                      1022
                name                                    "m_CO2_init"
                linkNode                                [1010 1021 1023]
                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                                      1023
                name                                    "m_H2O_liq_init"
                linkNode                                [1010 1022 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              1024
                name            "Duct_10x_/Vol_2D_6/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1010
        }

        chart {
                id                                                      1025
                name                                                    "Duct_10x_/Vol_2D_6/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1026 0 0]
                firstTransition                                         1028
                firstJunction                                           1027
                viewObj                                                 1025
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1029
                chartFileNumber                                         44
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1026
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1025
                treeNode                                [1025 0 0 0]
                superState                              SUBCHART
                subviewer                               1025
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1027
                position                [23.5747 49.5747 7]
                chart                   1025
                linkNode                [1025 0 0]
                subviewer               1025
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1028
                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                      1027
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1025
                linkNode                [1025 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1025
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1029
                name                                    "T"
                linkNode                                [1025 0 1030]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1030
                name                                    "T_dot"
                linkNode                                [1025 1029 1031]
                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                                      1031
                name                                    "m_dot_air"
                linkNode                                [1025 1030 1032]
                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                                      1032
                name                                    "m_air"
                linkNode                                [1025 1031 1033]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1033
                name                                    "m_H2O_gas"
                linkNode                                [1025 1032 1034]
                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                                      1034
                name                                    "m_CO2"
                linkNode                                [1025 1033 1035]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1035
                name                                    "m_H2O_liq"
                linkNode                                [1025 1034 1036]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1036
                name                                    "T_in_1"
                linkNode                                [1025 1035 1037]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1037
                name                                    "m_dot_air_in_1"
                linkNode                                [1025 1036 1038]
                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                                      1038
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1025 1037 1039]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1039
                name                                    "x_CO2_in_1"
                linkNode                                [1025 1038 1040]
                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                                      1040
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1025 1039 1041]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1041
                name                                    "T_in_2"
                linkNode                                [1025 1040 1042]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1042
                name                                    "m_dot_air_in_2"
                linkNode                                [1025 1041 1043]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1043
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1025 1042 1044]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1044
                name                                    "x_CO2_in_2"
                linkNode                                [1025 1043 1045]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1045
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1025 1044 1046]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1046
                name                                    "Q_dot"
                linkNode                                [1025 1045 1047]
                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                                      1047
                name                                    "m_dot_H2O_gas"
                linkNode                                [1025 1046 1048]
                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                                      1048
                name                                    "m_dot_CO2"
                linkNode                                [1025 1047 1049]
                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                                      1049
                name                                    "m_dot_H2O_liq"
                linkNode                                [1025 1048 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              1050
                name            "Duct_10x_/Vol_2D_6/Embedded_MATLAB_Function_1"
                machine         1
                chart           1025
        }

        chart {
                id                                                      1051
                name                                                    "Duct_10x_/FR_10/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1052 0 0]
                firstTransition                                         1054
                firstJunction                                           1053
                viewObj                                                 1051
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1055
                chartFileNumber                                         45
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1052
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1051
                treeNode                                [1051 0 0 0]
                superState                              SUBCHART
                subviewer                               1051
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      1053
                position                [23.5747 49.5747 7]
                chart                   1051
                linkNode                [1051 0 0]
                subviewer               1051
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1054
                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                      1053
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1051
                linkNode                [1051 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1051
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1055
                name                                    "rho"
                linkNode                                [1051 0 1056]
                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                                      1056
                name                                    "T"
                linkNode                                [1051 1055 1057]
                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                                      1057
                name                                    "x_H2O_gas"
                linkNode                                [1051 1056 1058]
                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                                      1058
                name                                    "x_CO2"
                linkNode                                [1051 1057 1059]
                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                                      1059
                name                                    "x_H2O_liq"
                linkNode                                [1051 1058 1060]
                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                                      1060
                name                                    "p_1"
                linkNode                                [1051 1059 1061]
                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                                      1061
                name                                    "m_dot_air_1"
                linkNode                                [1051 1060 1062]
                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                                      1062
                name                                    "p_2"
                linkNode                                [1051 1061 1063]
                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                                      1063
                name                                    "D"
                linkNode                                [1051 1062 1064]
                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                                      1064
                name                                    "L"
                linkNode                                [1051 1063 1065]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1065
                name                                    "zeta"
                linkNode                                [1051 1064 1066]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1066
                name                                    "mode"
                linkNode                                [1051 1065 1067]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1067
                name                                    "p_in_1"
                linkNode                                [1051 1066 1068]
                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                                      1068
                name                                    "rho_in_1"
                linkNode                                [1051 1067 1069]
                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                                      1069
                name                                    "T_in_1"
                linkNode                                [1051 1068 1070]
                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                                      1070
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1051 1069 1071]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1071
                name                                    "x_CO2_in_1"
                linkNode                                [1051 1070 1072]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1072
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1051 1071 1073]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1073
                name                                    "p_in_2"
                linkNode                                [1051 1072 1074]
                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                                      1074
                name                                    "rho_in_2"
                linkNode                                [1051 1073 1075]
                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                                      1075
                name                                    "T_in_2"
                linkNode                                [1051 1074 1076]
                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                                      1076
                name                                    "m_dot_air_2"
                linkNode                                [1051 1075 1077]
                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                                      1077
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1051 1076 1078]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1078
                name                                    "x_CO2_in_2"
                linkNode                                [1051 1077 1079]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1079
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1051 1078 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              1080
                name            "Duct_10x_/FR_10/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           1051
        }

        chart {
                id                                                      1081
                name                                                    "Duct_10x_/FR_8/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1082 0 0]
                firstTransition                                         1084
                firstJunction                                           1083
                viewObj                                                 1081
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1085
                chartFileNumber                                         46
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1082
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1081
                treeNode                                [1081 0 0 0]
                superState                              SUBCHART
                subviewer                               1081
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      1083
                position                [23.5747 49.5747 7]
                chart                   1081
                linkNode                [1081 0 0]
                subviewer               1081
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1084
                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                      1083
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1081
                linkNode                [1081 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1081
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1085
                name                                    "rho"
                linkNode                                [1081 0 1086]
                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                                      1086
                name                                    "T"
                linkNode                                [1081 1085 1087]
                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                                      1087
                name                                    "x_H2O_gas"
                linkNode                                [1081 1086 1088]
                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                                      1088
                name                                    "x_CO2"
                linkNode                                [1081 1087 1089]
                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                                      1089
                name                                    "x_H2O_liq"
                linkNode                                [1081 1088 1090]
                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                                      1090
                name                                    "p_1"
                linkNode                                [1081 1089 1091]
                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                                      1091
                name                                    "m_dot_air_1"
                linkNode                                [1081 1090 1092]
                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                                      1092
                name                                    "p_2"
                linkNode                                [1081 1091 1093]
                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                                      1093
                name                                    "D"
                linkNode                                [1081 1092 1094]
                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                                      1094
                name                                    "L"
                linkNode                                [1081 1093 1095]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1095
                name                                    "zeta"
                linkNode                                [1081 1094 1096]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1096
                name                                    "mode"
                linkNode                                [1081 1095 1097]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1097
                name                                    "p_in_1"
                linkNode                                [1081 1096 1098]
                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                                      1098
                name                                    "rho_in_1"
                linkNode                                [1081 1097 1099]
                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                                      1099
                name                                    "T_in_1"
                linkNode                                [1081 1098 1100]
                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                                      1100
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1081 1099 1101]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1101
                name                                    "x_CO2_in_1"
                linkNode                                [1081 1100 1102]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1102
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1081 1101 1103]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1103
                name                                    "p_in_2"
                linkNode                                [1081 1102 1104]
                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                                      1104
                name                                    "rho_in_2"
                linkNode                                [1081 1103 1105]
                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                                      1105
                name                                    "T_in_2"
                linkNode                                [1081 1104 1106]
                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                                      1106
                name                                    "m_dot_air_2"
                linkNode                                [1081 1105 1107]
                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                                      1107
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1081 1106 1108]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1108
                name                                    "x_CO2_in_2"
                linkNode                                [1081 1107 1109]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1109
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1081 1108 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              1110
                name            "Duct_10x_/FR_8/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           1081
        }

        chart {
                id                                                      1111
                name                                                    "Duct_10x_/FR_9/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [420.288 195.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1112 0 0]
                firstTransition                                         1114
                firstJunction                                           1113
                viewObj                                                 1111
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1115
                chartFileNumber                                         47
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1112
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1111
                treeNode                                [1111 0 0 0]
                superState                              SUBCHART
                subviewer                               1111
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(D,L,zeta,mode,p_in_1,rho_in_1,T_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,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"
                                                "% *\n"
                                                "% * Relevant input variables of FR\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 FR\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. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A                   = (pi*(D/2)^2);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                 = 0;\n"
                                                "T                   = 0;\n"
                                                "x_H2O_gas           = 0;\n"
                                                "x_CO2               = 0;\n"
                                                "x_H2O_liq           = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho           = rho_in_1;\n"
                                                "      T             = T_in_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"
                                                "   else\n"
                                                "      rho           = rho_in_2;\n"
                                                "      T             = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air             = 0.0000182;\n"
                                                "eta_H2O_gas         = 0.00000877;\n"
                                                "eta_CO2             = 0.0000149;\n"
                                                "eta                 = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2*"
                                                "eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin             = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                 = p_in_2;\n"
                                                "p_2                 = p_in_1;\n"
                                                "Delta_p             = p_in_1-p_in_2;\n"
                                                "V_dot               = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L)"
                                                ";\n"
                                                "v                   = V_dot/A;\n"
                                                "Re                  = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re               = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check               = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re < 1187.384382\n"
                                                "         lambda     = 64/Re;\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re      = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda     = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total = lambda*(L/D)+zeta;\n"
                                                "         Z_v        = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_tot"
                                                "al));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check   = 1;\n"
                                                "         else\n"
                                                "            check   = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v          = Z_v;\n"
                                                "         Re         = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot               = A*rho*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "else\n"
                                                "   m_dot_air_1      =  m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "   m_dot_air_2      = -m_dot/(1+x_H2O_gas+x_CO2);\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[57 131 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                      1113
                position                [23.5747 49.5747 7]
                chart                   1111
                linkNode                [1111 0 0]
                subviewer               1111
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1114
                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                      1113
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1111
                linkNode                [1111 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1111
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1115
                name                                    "rho"
                linkNode                                [1111 0 1116]
                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                                      1116
                name                                    "T"
                linkNode                                [1111 1115 1117]
                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                                      1117
                name                                    "x_H2O_gas"
                linkNode                                [1111 1116 1118]
                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                                      1118
                name                                    "x_CO2"
                linkNode                                [1111 1117 1119]
                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                                      1119
                name                                    "x_H2O_liq"
                linkNode                                [1111 1118 1120]
                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                                      1120
                name                                    "p_1"
                linkNode                                [1111 1119 1121]
                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                                      1121
                name                                    "m_dot_air_1"
                linkNode                                [1111 1120 1122]
                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                                      1122
                name                                    "p_2"
                linkNode                                [1111 1121 1123]
                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                                      1123
                name                                    "D"
                linkNode                                [1111 1122 1124]
                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                                      1124
                name                                    "L"
                linkNode                                [1111 1123 1125]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1125
                name                                    "zeta"
                linkNode                                [1111 1124 1126]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1126
                name                                    "mode"
                linkNode                                [1111 1125 1127]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1127
                name                                    "p_in_1"
                linkNode                                [1111 1126 1128]
                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                                      1128
                name                                    "rho_in_1"
                linkNode                                [1111 1127 1129]
                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                                      1129
                name                                    "T_in_1"
                linkNode                                [1111 1128 1130]
                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                                      1130
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1111 1129 1131]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1131
                name                                    "x_CO2_in_1"
                linkNode                                [1111 1130 1132]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1132
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1111 1131 1133]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1133
                name                                    "p_in_2"
                linkNode                                [1111 1132 1134]
                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                                      1134
                name                                    "rho_in_2"
                linkNode                                [1111 1133 1135]
                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                                      1135
                name                                    "T_in_2"
                linkNode                                [1111 1134 1136]
                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                                      1136
                name                                    "m_dot_air_2"
                linkNode                                [1111 1135 1137]
                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                                      1137
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1111 1136 1138]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1138
                name                                    "x_CO2_in_2"
                linkNode                                [1111 1137 1139]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1139
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1111 1138 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              1140
                name            "Duct_10x_/FR_9/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           1111
        }

        chart {
                id                                                      1141
                name                                                    "Duct_10x_/Vol_2D_7/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1142 0 0]
                firstTransition                                         1144
                firstJunction                                           1143
                viewObj                                                 1141
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1145
                chartFileNumber                                         48
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1142
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1141
                treeNode                                [1141 0 0 0]
                superState                              SUBCHART
                subviewer                               1141
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1143
                position                [23.5747 49.5747 7]
                chart                   1141
                linkNode                [1141 0 0]
                subviewer               1141
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1144
                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                      1143
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1141
                linkNode                [1141 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1141
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1145
                name                                    "V"
                linkNode                                [1141 0 1146]
                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                                      1146
                name                                    "p_init"
                linkNode                                [1141 1145 1147]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1147
                name                                    "T_init"
                linkNode                                [1141 1146 1148]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1148
                name                                    "x_H2O_gas_init"
                linkNode                                [1141 1147 1149]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1149
                name                                    "x_CO2_init"
                linkNode                                [1141 1148 1150]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1150
                name                                    "x_H2O_liq_init"
                linkNode                                [1141 1149 1151]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1151
                name                                    "m_air_init"
                linkNode                                [1141 1150 1152]
                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                                      1152
                name                                    "m_H2O_gas_init"
                linkNode                                [1141 1151 1153]
                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                                      1153
                name                                    "m_CO2_init"
                linkNode                                [1141 1152 1154]
                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                                      1154
                name                                    "m_H2O_liq_init"
                linkNode                                [1141 1153 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              1155
                name            "Duct_10x_/Vol_2D_7/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1141
        }

        chart {
                id                                                      1156
                name                                                    "Duct_10x_/Vol_2D_7/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1157 0 0]
                firstTransition                                         1159
                firstJunction                                           1158
                viewObj                                                 1156
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1160
                chartFileNumber                                         49
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1157
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1156
                treeNode                                [1156 0 0 0]
                superState                              SUBCHART
                subviewer                               1156
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1158
                position                [23.5747 49.5747 7]
                chart                   1156
                linkNode                [1156 0 0]
                subviewer               1156
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1159
                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                      1158
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1156
                linkNode                [1156 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1156
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1160
                name                                    "T"
                linkNode                                [1156 0 1161]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1161
                name                                    "T_dot"
                linkNode                                [1156 1160 1162]
                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                                      1162
                name                                    "m_dot_air"
                linkNode                                [1156 1161 1163]
                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                                      1163
                name                                    "m_air"
                linkNode                                [1156 1162 1164]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1164
                name                                    "m_H2O_gas"
                linkNode                                [1156 1163 1165]
                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                                      1165
                name                                    "m_CO2"
                linkNode                                [1156 1164 1166]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1166
                name                                    "m_H2O_liq"
                linkNode                                [1156 1165 1167]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1167
                name                                    "T_in_1"
                linkNode                                [1156 1166 1168]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1168
                name                                    "m_dot_air_in_1"
                linkNode                                [1156 1167 1169]
                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                                      1169
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1156 1168 1170]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1170
                name                                    "x_CO2_in_1"
                linkNode                                [1156 1169 1171]
                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                                      1171
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1156 1170 1172]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1172
                name                                    "T_in_2"
                linkNode                                [1156 1171 1173]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1173
                name                                    "m_dot_air_in_2"
                linkNode                                [1156 1172 1174]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1174
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1156 1173 1175]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1175
                name                                    "x_CO2_in_2"
                linkNode                                [1156 1174 1176]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1176
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1156 1175 1177]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1177
                name                                    "Q_dot"
                linkNode                                [1156 1176 1178]
                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                                      1178
                name                                    "m_dot_H2O_gas"
                linkNode                                [1156 1177 1179]
                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                                      1179
                name                                    "m_dot_CO2"
                linkNode                                [1156 1178 1180]
                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                                      1180
                name                                    "m_dot_H2O_liq"
                linkNode                                [1156 1179 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              1181
                name            "Duct_10x_/Vol_2D_7/Embedded_MATLAB_Function_1"
                machine         1
                chart           1156
        }

        chart {
                id                                                      1182
                name                                                    "Duct_10x_/Vol_2D_8/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1183 0 0]
                firstTransition                                         1185
                firstJunction                                           1184
                viewObj                                                 1182
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1186
                chartFileNumber                                         50
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1183
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1182
                treeNode                                [1182 0 0 0]
                superState                              SUBCHART
                subviewer                               1182
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1184
                position                [23.5747 49.5747 7]
                chart                   1182
                linkNode                [1182 0 0]
                subviewer               1182
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1185
                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                      1184
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1182
                linkNode                [1182 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1182
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1186
                name                                    "V"
                linkNode                                [1182 0 1187]
                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                                      1187
                name                                    "p_init"
                linkNode                                [1182 1186 1188]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1188
                name                                    "T_init"
                linkNode                                [1182 1187 1189]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1189
                name                                    "x_H2O_gas_init"
                linkNode                                [1182 1188 1190]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1190
                name                                    "x_CO2_init"
                linkNode                                [1182 1189 1191]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1191
                name                                    "x_H2O_liq_init"
                linkNode                                [1182 1190 1192]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1192
                name                                    "m_air_init"
                linkNode                                [1182 1191 1193]
                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                                      1193
                name                                    "m_H2O_gas_init"
                linkNode                                [1182 1192 1194]
                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                                      1194
                name                                    "m_CO2_init"
                linkNode                                [1182 1193 1195]
                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                                      1195
                name                                    "m_H2O_liq_init"
                linkNode                                [1182 1194 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              1196
                name            "Duct_10x_/Vol_2D_8/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1182
        }

        chart {
                id                                                      1197
                name                                                    "Duct_10x_/Vol_2D_8/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1198 0 0]
                firstTransition                                         1200
                firstJunction                                           1199
                viewObj                                                 1197
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1201
                chartFileNumber                                         51
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1198
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1197
                treeNode                                [1197 0 0 0]
                superState                              SUBCHART
                subviewer                               1197
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1199
                position                [23.5747 49.5747 7]
                chart                   1197
                linkNode                [1197 0 0]
                subviewer               1197
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1200
                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                      1199
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1197
                linkNode                [1197 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1197
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1201
                name                                    "T"
                linkNode                                [1197 0 1202]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1202
                name                                    "T_dot"
                linkNode                                [1197 1201 1203]
                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                                      1203
                name                                    "m_dot_air"
                linkNode                                [1197 1202 1204]
                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                                      1204
                name                                    "m_air"
                linkNode                                [1197 1203 1205]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1205
                name                                    "m_H2O_gas"
                linkNode                                [1197 1204 1206]
                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                                      1206
                name                                    "m_CO2"
                linkNode                                [1197 1205 1207]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1207
                name                                    "m_H2O_liq"
                linkNode                                [1197 1206 1208]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1208
                name                                    "T_in_1"
                linkNode                                [1197 1207 1209]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1209
                name                                    "m_dot_air_in_1"
                linkNode                                [1197 1208 1210]
                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                                      1210
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1197 1209 1211]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1211
                name                                    "x_CO2_in_1"
                linkNode                                [1197 1210 1212]
                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                                      1212
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1197 1211 1213]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1213
                name                                    "T_in_2"
                linkNode                                [1197 1212 1214]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1214
                name                                    "m_dot_air_in_2"
                linkNode                                [1197 1213 1215]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1215
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1197 1214 1216]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1216
                name                                    "x_CO2_in_2"
                linkNode                                [1197 1215 1217]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1217
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1197 1216 1218]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1218
                name                                    "Q_dot"
                linkNode                                [1197 1217 1219]
                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                                      1219
                name                                    "m_dot_H2O_gas"
                linkNode                                [1197 1218 1220]
                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                                      1220
                name                                    "m_dot_CO2"
                linkNode                                [1197 1219 1221]
                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                                      1221
                name                                    "m_dot_H2O_liq"
                linkNode                                [1197 1220 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              1222
                name            "Duct_10x_/Vol_2D_8/Embedded_MATLAB_Function_1"
                machine         1
                chart           1197
        }

        chart {
                id                                                      1223
                name                                                    "Duct_10x_/Vol_2D_9/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1224 0 0]
                firstTransition                                         1226
                firstJunction                                           1225
                viewObj                                                 1223
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1227
                chartFileNumber                                         52
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1224
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1223
                treeNode                                [1223 0 0 0]
                superState                              SUBCHART
                subviewer                               1223
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1225
                position                [23.5747 49.5747 7]
                chart                   1223
                linkNode                [1223 0 0]
                subviewer               1223
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1226
                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                      1225
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1223
                linkNode                [1223 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1223
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1227
                name                                    "V"
                linkNode                                [1223 0 1228]
                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                                      1228
                name                                    "p_init"
                linkNode                                [1223 1227 1229]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1229
                name                                    "T_init"
                linkNode                                [1223 1228 1230]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1230
                name                                    "x_H2O_gas_init"
                linkNode                                [1223 1229 1231]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1231
                name                                    "x_CO2_init"
                linkNode                                [1223 1230 1232]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1232
                name                                    "x_H2O_liq_init"
                linkNode                                [1223 1231 1233]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1233
                name                                    "m_air_init"
                linkNode                                [1223 1232 1234]
                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                                      1234
                name                                    "m_H2O_gas_init"
                linkNode                                [1223 1233 1235]
                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                                      1235
                name                                    "m_CO2_init"
                linkNode                                [1223 1234 1236]
                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                                      1236
                name                                    "m_H2O_liq_init"
                linkNode                                [1223 1235 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              1237
                name            "Duct_10x_/Vol_2D_9/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1223
        }

        chart {
                id                                                      1238
                name                                                    "Duct_10x_/Vol_2D_9/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1239 0 0]
                firstTransition                                         1241
                firstJunction                                           1240
                viewObj                                                 1238
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1242
                chartFileNumber                                         53
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1239
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1238
                treeNode                                [1238 0 0 0]
                superState                              SUBCHART
                subviewer                               1238
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1240
                position                [23.5747 49.5747 7]
                chart                   1238
                linkNode                [1238 0 0]
                subviewer               1238
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1241
                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                      1240
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1238
                linkNode                [1238 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1238
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1242
                name                                    "T"
                linkNode                                [1238 0 1243]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1243
                name                                    "T_dot"
                linkNode                                [1238 1242 1244]
                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                                      1244
                name                                    "m_dot_air"
                linkNode                                [1238 1243 1245]
                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                                      1245
                name                                    "m_air"
                linkNode                                [1238 1244 1246]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1246
                name                                    "m_H2O_gas"
                linkNode                                [1238 1245 1247]
                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                                      1247
                name                                    "m_CO2"
                linkNode                                [1238 1246 1248]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1248
                name                                    "m_H2O_liq"
                linkNode                                [1238 1247 1249]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1249
                name                                    "T_in_1"
                linkNode                                [1238 1248 1250]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1250
                name                                    "m_dot_air_in_1"
                linkNode                                [1238 1249 1251]
                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                                      1251
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1238 1250 1252]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1252
                name                                    "x_CO2_in_1"
                linkNode                                [1238 1251 1253]
                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                                      1253
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1238 1252 1254]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1254
                name                                    "T_in_2"
                linkNode                                [1238 1253 1255]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1255
                name                                    "m_dot_air_in_2"
                linkNode                                [1238 1254 1256]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1256
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1238 1255 1257]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1257
                name                                    "x_CO2_in_2"
                linkNode                                [1238 1256 1258]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1258
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1238 1257 1259]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1259
                name                                    "Q_dot"
                linkNode                                [1238 1258 1260]
                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                                      1260
                name                                    "m_dot_H2O_gas"
                linkNode                                [1238 1259 1261]
                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                                      1261
                name                                    "m_dot_CO2"
                linkNode                                [1238 1260 1262]
                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                                      1262
                name                                    "m_dot_H2O_liq"
                linkNode                                [1238 1261 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              1263
                name            "Duct_10x_/Vol_2D_9/Embedded_MATLAB_Function_1"
                machine         1
                chart           1238
        }

        chart {
                id                                                      1264
                name                                                    "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [270.45 303.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1265 0 0]
                firstTransition                                         1267
                firstJunction                                           1266
                viewObj                                                 1264
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1268
                chartFileNumber                                         54
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1265
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1264
                treeNode                                [1264 0 0 0]
                superState                              SUBCHART
                subviewer                               1264
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 130 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                      1266
                position                [23.5747 49.5747 7]
                chart                   1264
                linkNode                [1264 0 0]
                subviewer               1264
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1267
                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                      1266
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1264
                linkNode                [1264 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1264
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1268
                name                                    "V"
                linkNode                                [1264 0 1269]
                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                                      1269
                name                                    "p_init"
                linkNode                                [1264 1268 1270]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1270
                name                                    "T_init"
                linkNode                                [1264 1269 1271]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1271
                name                                    "x_H2O_gas_init"
                linkNode                                [1264 1270 1272]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1272
                name                                    "x_CO2_init"
                linkNode                                [1264 1271 1273]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1273
                name                                    "x_H2O_liq_init"
                linkNode                                [1264 1272 1274]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1274
                name                                    "m_air_init"
                linkNode                                [1264 1273 1275]
                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                                      1275
                name                                    "m_H2O_gas_init"
                linkNode                                [1264 1274 1276]
                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                                      1276
                name                                    "m_CO2_init"
                linkNode                                [1264 1275 1277]
                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                                      1277
                name                                    "m_H2O_liq_init"
                linkNode                                [1264 1276 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              1278
                name            "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1264
        }

        chart {
                id                                                      1279
                name                                                    "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded_MATLAB_Function_1"
                windowPosition                                          [387.36 211.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1280 0 0]
                firstTransition                                         1282
                firstJunction                                           1281
                viewObj                                                 1279
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1283
                chartFileNumber                                         55
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1280
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1279
                treeNode                                [1279 0 0 0]
                superState                              SUBCHART
                subviewer                               1279
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1281
                position                [23.5747 49.5747 7]
                chart                   1279
                linkNode                [1279 0 0]
                subviewer               1279
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1282
                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                      1281
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1279
                linkNode                [1279 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1279
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1283
                name                                    "T"
                linkNode                                [1279 0 1284]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1284
                name                                    "T_dot"
                linkNode                                [1279 1283 1285]
                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                                      1285
                name                                    "m_dot_air"
                linkNode                                [1279 1284 1286]
                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                                      1286
                name                                    "m_air"
                linkNode                                [1279 1285 1287]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1287
                name                                    "m_H2O_gas"
                linkNode                                [1279 1286 1288]
                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                                      1288
                name                                    "m_CO2"
                linkNode                                [1279 1287 1289]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1289
                name                                    "m_H2O_liq"
                linkNode                                [1279 1288 1290]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1290
                name                                    "T_in_1"
                linkNode                                [1279 1289 1291]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1291
                name                                    "m_dot_air_in_1"
                linkNode                                [1279 1290 1292]
                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                                      1292
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1279 1291 1293]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1293
                name                                    "x_CO2_in_1"
                linkNode                                [1279 1292 1294]
                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                                      1294
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1279 1293 1295]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1295
                name                                    "T_in_2"
                linkNode                                [1279 1294 1296]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1296
                name                                    "m_dot_air_in_2"
                linkNode                                [1279 1295 1297]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1297
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1279 1296 1298]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1298
                name                                    "x_CO2_in_2"
                linkNode                                [1279 1297 1299]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1299
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1279 1298 1300]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1300
                name                                    "Q_dot"
                linkNode                                [1279 1299 1301]
                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                                      1301
                name                                    "m_dot_H2O_gas"
                linkNode                                [1279 1300 1302]
                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                                      1302
                name                                    "m_dot_CO2"
                linkNode                                [1279 1301 1303]
                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                                      1303
                name                                    "m_dot_H2O_liq"
                linkNode                                [1279 1302 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              1304
                name            "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded_MATLAB_Function_1"
                machine         1
                chart           1279
        }

        chart {
                id                                                      1305
                name                                                    "p_Ext_T_Const_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [311.813 299.45 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1306 0 0]
                firstTransition                                         1308
                firstJunction                                           1307
                viewObj                                                 1305
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1309
                chartFileNumber                                         56
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1306
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1305
                treeNode                                [1305 0 0 0]
                superState                              SUBCHART
                subviewer                               1305
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function rho  = Cal(p,T,x_H2O_gas,x_CO2)\n"
                                                "\n"
                                                "rho = (p/T)*(1/((1/(1+x_H2O_gas+x_CO2))*287.058+(x_H2O_gas/"
                                                "(1+x_H2O_gas+x_CO2))*461.523+(x_CO2/(1+x_H2O_gas+x_CO2))*18"
                                                "8.924));"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1307
                position                [23.5747 49.5747 7]
                chart                   1305
                linkNode                [1305 0 0]
                subviewer               1305
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1308
                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                      1307
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1305
                linkNode                [1305 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1305
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1309
                name                                    "p"
                linkNode                                [1305 0 1310]
                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                                      1310
                name                                    "T"
                linkNode                                [1305 1309 1311]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1311
                name                                    "rho"
                linkNode                                [1305 1310 1312]
                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                                      1312
                name                                    "x_H2O_gas"
                linkNode                                [1305 1311 1313]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1313
                name                                    "x_CO2"
                linkNode                                [1305 1312 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              1314
                name            "p_Ext_T_Const_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1305
        }

        chart {
                id                                                      1315
                name                                                    "p_Ext_rho_Const_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [326.813 284.45 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1316 0 0]
                firstTransition                                         1318
                firstJunction                                           1317
                viewObj                                                 1315
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1319
                chartFileNumber                                         57
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1316
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1315
                treeNode                                [1315 0 0 0]
                superState                              SUBCHART
                subviewer                               1315
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function T = Cal(p,rho,x_H2O_gas,x_CO2)\n"
                                                "\n"
                                                "T = (p/rho)*(1/((1/(1+x_H2O_gas+x_CO2))*287.058+(x_H2O_gas/"
                                                "(1+x_H2O_gas+x_CO2))*461.523+(x_CO2/(1+x_H2O_gas+x_CO2))*18"
                                                "8.924));"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1317
                position                [23.5747 49.5747 7]
                chart                   1315
                linkNode                [1315 0 0]
                subviewer               1315
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1318
                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                      1317
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1315
                linkNode                [1315 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1315
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1319
                name                                    "p"
                linkNode                                [1315 0 1320]
                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                                      1320
                name                                    "rho"
                linkNode                                [1315 1319 1321]
                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                                      1321
                name                                    "x_H2O_gas"
                linkNode                                [1315 1320 1322]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1322
                name                                    "x_CO2"
                linkNode                                [1315 1321 1323]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1323
                name                                    "T"
                linkNode                                [1315 1322 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              1324
                name            "p_Ext_rho_Const_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1315
        }

        chart {
                id                                                      1325
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [468.45 162.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1326 0 0]
                firstTransition                                         1328
                firstJunction                                           1327
                viewObj                                                 1325
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1329
                chartFileNumber                                         58
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      1326
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1325
                treeNode                                [1325 0 0 0]
                superState                              SUBCHART
                subviewer                               1325
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V=(pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1327
                position                [23.5747 49.5747 7]
                chart                   1325
                linkNode                [1325 0 0]
                subviewer               1325
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1328
                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                      1327
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1325
                linkNode                [1325 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1325
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1329
                name                                    "L"
                linkNode                                [1325 0 1330]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1330
                name                                    "D_major"
                linkNode                                [1325 1329 1331]
                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                                      1331
                name                                    "V"
                linkNode                                [1325 1330 1332]
                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                                      1332
                name                                    "D_minor"
                linkNode                                [1325 1331 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              1333
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1325
        }

        chart {
                id                                                      1334
                name                                                    "Duct_10x_/Vol_2D_1/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [270.45 303.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1335 0 0]
                firstTransition                                         1337
                firstJunction                                           1336
                viewObj                                                 1334
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1338
                chartFileNumber                                         59
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1335
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1334
                treeNode                                [1334 0 0 0]
                superState                              SUBCHART
                subviewer                               1334
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1336
                position                [23.5747 49.5747 7]
                chart                   1334
                linkNode                [1334 0 0]
                subviewer               1334
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1337
                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                      1336
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1334
                linkNode                [1334 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1334
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1338
                name                                    "V"
                linkNode                                [1334 0 1339]
                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                                      1339
                name                                    "p_init"
                linkNode                                [1334 1338 1340]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1340
                name                                    "T_init"
                linkNode                                [1334 1339 1341]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1341
                name                                    "x_H2O_gas_init"
                linkNode                                [1334 1340 1342]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1342
                name                                    "x_CO2_init"
                linkNode                                [1334 1341 1343]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1343
                name                                    "x_H2O_liq_init"
                linkNode                                [1334 1342 1344]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1344
                name                                    "m_air_init"
                linkNode                                [1334 1343 1345]
                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                                      1345
                name                                    "m_H2O_gas_init"
                linkNode                                [1334 1344 1346]
                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                                      1346
                name                                    "m_CO2_init"
                linkNode                                [1334 1345 1347]
                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                                      1347
                name                                    "m_H2O_liq_init"
                linkNode                                [1334 1346 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              1348
                name            "Duct_10x_/Vol_2D_1/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1334
        }

        chart {
                id                                                      1349
                name                                                    "Duct_10x_/Vol_2D_1/Embedded_MATLAB_Function_1"
                windowPosition                                          [387.36 211.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1350 0 0]
                firstTransition                                         1352
                firstJunction                                           1351
                viewObj                                                 1349
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1353
                chartFileNumber                                         60
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1350
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1349
                treeNode                                [1349 0 0 0]
                superState                              SUBCHART
                subviewer                               1349
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1351
                position                [23.5747 49.5747 7]
                chart                   1349
                linkNode                [1349 0 0]
                subviewer               1349
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1352
                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                      1351
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1349
                linkNode                [1349 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1349
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1353
                name                                    "T"
                linkNode                                [1349 0 1354]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1354
                name                                    "T_dot"
                linkNode                                [1349 1353 1355]
                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                                      1355
                name                                    "m_dot_air"
                linkNode                                [1349 1354 1356]
                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                                      1356
                name                                    "m_air"
                linkNode                                [1349 1355 1357]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1357
                name                                    "m_H2O_gas"
                linkNode                                [1349 1356 1358]
                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                                      1358
                name                                    "m_CO2"
                linkNode                                [1349 1357 1359]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1359
                name                                    "m_H2O_liq"
                linkNode                                [1349 1358 1360]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1360
                name                                    "T_in_1"
                linkNode                                [1349 1359 1361]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1361
                name                                    "m_dot_air_in_1"
                linkNode                                [1349 1360 1362]
                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                                      1362
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1349 1361 1363]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1363
                name                                    "x_CO2_in_1"
                linkNode                                [1349 1362 1364]
                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                                      1364
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1349 1363 1365]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1365
                name                                    "T_in_2"
                linkNode                                [1349 1364 1366]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1366
                name                                    "m_dot_air_in_2"
                linkNode                                [1349 1365 1367]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1367
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1349 1366 1368]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1368
                name                                    "x_CO2_in_2"
                linkNode                                [1349 1367 1369]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1369
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1349 1368 1370]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1370
                name                                    "Q_dot"
                linkNode                                [1349 1369 1371]
                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                                      1371
                name                                    "m_dot_H2O_gas"
                linkNode                                [1349 1370 1372]
                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                                      1372
                name                                    "m_dot_CO2"
                linkNode                                [1349 1371 1373]
                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                                      1373
                name                                    "m_dot_H2O_liq"
                linkNode                                [1349 1372 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              1374
                name            "Duct_10x_/Vol_2D_1/Embedded_MATLAB_Function_1"
                machine         1
                chart           1349
        }

        chart {
                id                                                      1375
                name                                                    "Duct_10x_/Vol_2D_1/Embedded_MATLAB_Function_2"
                windowPosition                                          [327.288 285.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1376 0 0]
                firstTransition                                         1378
                firstJunction                                           1377
                viewObj                                                 1375
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1379
                chartFileNumber                                         61
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1376
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1375
                treeNode                                [1375 0 0 0]
                superState                              SUBCHART
                subviewer                               1375
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1377
                position                [23.5747 49.5747 7]
                chart                   1375
                linkNode                [1375 0 0]
                subviewer               1375
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1378
                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                      1377
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1375
                linkNode                [1375 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1375
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1379
                name                                    "T"
                linkNode                                [1375 0 1380]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1380
                name                                    "p"
                linkNode                                [1375 1379 1381]
                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                                      1381
                name                                    "rho"
                linkNode                                [1375 1380 1382]
                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                                      1382
                name                                    "m_air"
                linkNode                                [1375 1381 1383]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1383
                name                                    "m_H2O_gas"
                linkNode                                [1375 1382 1384]
                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                                      1384
                name                                    "m_CO2"
                linkNode                                [1375 1383 1385]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1385
                name                                    "m_H2O_liq"
                linkNode                                [1375 1384 1386]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1386
                name                                    "V"
                linkNode                                [1375 1385 1387]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1387
                name                                    "x_H2O_gas"
                linkNode                                [1375 1386 1388]
                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                                      1388
                name                                    "x_CO2"
                linkNode                                [1375 1387 1389]
                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                                      1389
                name                                    "x_H2O_liq"
                linkNode                                [1375 1388 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              1390
                name            "Duct_10x_/Vol_2D_1/Embedded_MATLAB_Function_2"
                machine         1
                chart           1375
        }

        chart {
                id                                                      1391
                name                                                    "Duct_10x_/Vol_2D_5/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1392 0 0]
                firstTransition                                         1394
                firstJunction                                           1393
                viewObj                                                 1391
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1395
                chartFileNumber                                         62
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1392
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1391
                treeNode                                [1391 0 0 0]
                superState                              SUBCHART
                subviewer                               1391
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1393
                position                [23.5747 49.5747 7]
                chart                   1391
                linkNode                [1391 0 0]
                subviewer               1391
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1394
                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                      1393
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1391
                linkNode                [1391 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1391
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1395
                name                                    "T"
                linkNode                                [1391 0 1396]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1396
                name                                    "p"
                linkNode                                [1391 1395 1397]
                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                                      1397
                name                                    "rho"
                linkNode                                [1391 1396 1398]
                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                                      1398
                name                                    "m_air"
                linkNode                                [1391 1397 1399]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1399
                name                                    "m_H2O_gas"
                linkNode                                [1391 1398 1400]
                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                                      1400
                name                                    "m_CO2"
                linkNode                                [1391 1399 1401]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1401
                name                                    "m_H2O_liq"
                linkNode                                [1391 1400 1402]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1402
                name                                    "V"
                linkNode                                [1391 1401 1403]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1403
                name                                    "x_H2O_gas"
                linkNode                                [1391 1402 1404]
                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                                      1404
                name                                    "x_CO2"
                linkNode                                [1391 1403 1405]
                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                                      1405
                name                                    "x_H2O_liq"
                linkNode                                [1391 1404 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              1406
                name            "Duct_10x_/Vol_2D_5/Embedded_MATLAB_Function_2"
                machine         1
                chart           1391
        }

        chart {
                id                                                      1407
                name                                                    "Duct_10x_/Vol_2D_6/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1408 0 0]
                firstTransition                                         1410
                firstJunction                                           1409
                viewObj                                                 1407
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1411
                chartFileNumber                                         63
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1408
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1407
                treeNode                                [1407 0 0 0]
                superState                              SUBCHART
                subviewer                               1407
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1409
                position                [23.5747 49.5747 7]
                chart                   1407
                linkNode                [1407 0 0]
                subviewer               1407
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1410
                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                      1409
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1407
                linkNode                [1407 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1407
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1411
                name                                    "T"
                linkNode                                [1407 0 1412]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1412
                name                                    "p"
                linkNode                                [1407 1411 1413]
                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                                      1413
                name                                    "rho"
                linkNode                                [1407 1412 1414]
                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                                      1414
                name                                    "m_air"
                linkNode                                [1407 1413 1415]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1415
                name                                    "m_H2O_gas"
                linkNode                                [1407 1414 1416]
                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                                      1416
                name                                    "m_CO2"
                linkNode                                [1407 1415 1417]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1417
                name                                    "m_H2O_liq"
                linkNode                                [1407 1416 1418]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1418
                name                                    "V"
                linkNode                                [1407 1417 1419]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1419
                name                                    "x_H2O_gas"
                linkNode                                [1407 1418 1420]
                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                                      1420
                name                                    "x_CO2"
                linkNode                                [1407 1419 1421]
                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                                      1421
                name                                    "x_H2O_liq"
                linkNode                                [1407 1420 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              1422
                name            "Duct_10x_/Vol_2D_6/Embedded_MATLAB_Function_2"
                machine         1
                chart           1407
        }

        chart {
                id                                                      1423
                name                                                    "Duct_10x_/Vol_2D_7/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1424 0 0]
                firstTransition                                         1426
                firstJunction                                           1425
                viewObj                                                 1423
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1427
                chartFileNumber                                         64
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1424
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1423
                treeNode                                [1423 0 0 0]
                superState                              SUBCHART
                subviewer                               1423
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1425
                position                [23.5747 49.5747 7]
                chart                   1423
                linkNode                [1423 0 0]
                subviewer               1423
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1426
                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                      1425
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1423
                linkNode                [1423 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1423
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1427
                name                                    "T"
                linkNode                                [1423 0 1428]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1428
                name                                    "p"
                linkNode                                [1423 1427 1429]
                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                                      1429
                name                                    "rho"
                linkNode                                [1423 1428 1430]
                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                                      1430
                name                                    "m_air"
                linkNode                                [1423 1429 1431]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1431
                name                                    "m_H2O_gas"
                linkNode                                [1423 1430 1432]
                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                                      1432
                name                                    "m_CO2"
                linkNode                                [1423 1431 1433]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1433
                name                                    "m_H2O_liq"
                linkNode                                [1423 1432 1434]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1434
                name                                    "V"
                linkNode                                [1423 1433 1435]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1435
                name                                    "x_H2O_gas"
                linkNode                                [1423 1434 1436]
                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                                      1436
                name                                    "x_CO2"
                linkNode                                [1423 1435 1437]
                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                                      1437
                name                                    "x_H2O_liq"
                linkNode                                [1423 1436 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              1438
                name            "Duct_10x_/Vol_2D_7/Embedded_MATLAB_Function_2"
                machine         1
                chart           1423
        }

        chart {
                id                                                      1439
                name                                                    "Duct_10x_/Vol_2D_8/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1440 0 0]
                firstTransition                                         1442
                firstJunction                                           1441
                viewObj                                                 1439
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1443
                chartFileNumber                                         65
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1440
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1439
                treeNode                                [1439 0 0 0]
                superState                              SUBCHART
                subviewer                               1439
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1441
                position                [23.5747 49.5747 7]
                chart                   1439
                linkNode                [1439 0 0]
                subviewer               1439
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1442
                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                      1441
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1439
                linkNode                [1439 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1439
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1443
                name                                    "T"
                linkNode                                [1439 0 1444]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1444
                name                                    "p"
                linkNode                                [1439 1443 1445]
                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                                      1445
                name                                    "rho"
                linkNode                                [1439 1444 1446]
                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                                      1446
                name                                    "m_air"
                linkNode                                [1439 1445 1447]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1447
                name                                    "m_H2O_gas"
                linkNode                                [1439 1446 1448]
                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                                      1448
                name                                    "m_CO2"
                linkNode                                [1439 1447 1449]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1449
                name                                    "m_H2O_liq"
                linkNode                                [1439 1448 1450]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1450
                name                                    "V"
                linkNode                                [1439 1449 1451]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1451
                name                                    "x_H2O_gas"
                linkNode                                [1439 1450 1452]
                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                                      1452
                name                                    "x_CO2"
                linkNode                                [1439 1451 1453]
                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                                      1453
                name                                    "x_H2O_liq"
                linkNode                                [1439 1452 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              1454
                name            "Duct_10x_/Vol_2D_8/Embedded_MATLAB_Function_2"
                machine         1
                chart           1439
        }

        chart {
                id                                                      1455
                name                                                    "Duct_10x_/Vol_2D_9/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1456 0 0]
                firstTransition                                         1458
                firstJunction                                           1457
                viewObj                                                 1455
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1459
                chartFileNumber                                         66
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1456
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1455
                treeNode                                [1455 0 0 0]
                superState                              SUBCHART
                subviewer                               1455
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      1457
                position                [23.5747 49.5747 7]
                chart                   1455
                linkNode                [1455 0 0]
                subviewer               1455
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1458
                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                      1457
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1455
                linkNode                [1455 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1455
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1459
                name                                    "T"
                linkNode                                [1455 0 1460]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1460
                name                                    "p"
                linkNode                                [1455 1459 1461]
                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                                      1461
                name                                    "rho"
                linkNode                                [1455 1460 1462]
                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                                      1462
                name                                    "m_air"
                linkNode                                [1455 1461 1463]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1463
                name                                    "m_H2O_gas"
                linkNode                                [1455 1462 1464]
                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                                      1464
                name                                    "m_CO2"
                linkNode                                [1455 1463 1465]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1465
                name                                    "m_H2O_liq"
                linkNode                                [1455 1464 1466]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1466
                name                                    "V"
                linkNode                                [1455 1465 1467]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1467
                name                                    "x_H2O_gas"
                linkNode                                [1455 1466 1468]
                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                                      1468
                name                                    "x_CO2"
                linkNode                                [1455 1467 1469]
                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                                      1469
                name                                    "x_H2O_liq"
                linkNode                                [1455 1468 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              1470
                name            "Duct_10x_/Vol_2D_9/Embedded_MATLAB_Function_2"
                machine         1
                chart           1455
        }

        chart {
                id                                                      1471
                name                                                    "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded_MATLAB_Function_2"
                windowPosition                                          [327.288 285.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1472 0 0]
                firstTransition                                         1474
                firstJunction                                           1473
                viewObj                                                 1471
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1475
                chartFileNumber                                         67
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1472
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1471
                treeNode                                [1471 0 0 0]
                superState                              SUBCHART
                subviewer                               1471
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. The differnt contents are defined in respect of the "
                                                "mass of the \n"
                                                "% *    dry air. \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 01.12.2007\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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1473
                position                [23.5747 49.5747 7]
                chart                   1471
                linkNode                [1471 0 0]
                subviewer               1471
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1474
                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                      1473
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1471
                linkNode                [1471 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1471
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1475
                name                                    "T"
                linkNode                                [1471 0 1476]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1476
                name                                    "p"
                linkNode                                [1471 1475 1477]
                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                                      1477
                name                                    "rho"
                linkNode                                [1471 1476 1478]
                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                                      1478
                name                                    "m_air"
                linkNode                                [1471 1477 1479]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1479
                name                                    "m_H2O_gas"
                linkNode                                [1471 1478 1480]
                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                                      1480
                name                                    "m_CO2"
                linkNode                                [1471 1479 1481]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1481
                name                                    "m_H2O_liq"
                linkNode                                [1471 1480 1482]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1482
                name                                    "V"
                linkNode                                [1471 1481 1483]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1483
                name                                    "x_H2O_gas"
                linkNode                                [1471 1482 1484]
                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                                      1484
                name                                    "x_CO2"
                linkNode                                [1471 1483 1485]
                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                                      1485
                name                                    "x_H2O_liq"
                linkNode                                [1471 1484 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              1486
                name            "Duct_Heat_Transfer_Wall_/Vol_2D/Embedded_MATLAB_Function_2"
                machine         1
                chart           1471
        }

        chart {
                id                                                      1487
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [453.45 177.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 1488 0 0]
                firstTransition                                         1490
                firstJunction                                           1489
                viewObj                                                 1487
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1491
                chartFileNumber                                         68
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      1488
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1487
                treeNode                                [1487 0 0 0]
                superState                              SUBCHART
                subviewer                               1487
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V=(pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1489
                position                [23.5747 49.5747 7]
                chart                   1487
                linkNode                [1487 0 0]
                subviewer               1487
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1490
                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                      1489
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1487
                linkNode                [1487 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1487
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1491
                name                                    "L"
                linkNode                                [1487 0 1492]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1492
                name                                    "D_major"
                linkNode                                [1487 1491 1493]
                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                                      1493
                name                                    "V"
                linkNode                                [1487 1492 1494]
                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                                      1494
                name                                    "D_minor"
                linkNode                                [1487 1493 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              1495
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1487
        }

        chart {
                id                                                      1496
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                windowPosition                                          [612.23 28.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1497 0 0]
                firstTransition                                         1499
                firstJunction                                           1498
                viewObj                                                 1496
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1500
                chartFileNumber                                         69
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1497
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1496
                treeNode                                [1496 0 0 0]
                superState                              SUBCHART
                subviewer                               1496
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      1498
                position                [23.5747 49.5747 7]
                chart                   1496
                linkNode                [1496 0 0]
                subviewer               1496
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1499
                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                      1498
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1496
                linkNode                [1496 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1496
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1500
                name                                    "n_unit"
                linkNode                                [1496 0 1501]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1501
                name                                    "rho"
                linkNode                                [1496 1500 1502]
                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                                      1502
                name                                    "T"
                linkNode                                [1496 1501 1503]
                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                                      1503
                name                                    "x_H2O_gas"
                linkNode                                [1496 1502 1504]
                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                                      1504
                name                                    "x_CO2"
                linkNode                                [1496 1503 1505]
                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                                      1505
                name                                    "x_H2O_liq"
                linkNode                                [1496 1504 1506]
                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                                      1506
                name                                    "p_1"
                linkNode                                [1496 1505 1507]
                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                                      1507
                name                                    "m_dot_air_1"
                linkNode                                [1496 1506 1508]
                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                                      1508
                name                                    "p_2"
                linkNode                                [1496 1507 1509]
                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                                      1509
                name                                    "D_major"
                linkNode                                [1496 1508 1510]
                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                                      1510
                name                                    "D_minor"
                linkNode                                [1496 1509 1511]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1511
                name                                    "b_wall"
                linkNode                                [1496 1510 1512]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1512
                name                                    "b_isolation"
                linkNode                                [1496 1511 1513]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1513
                name                                    "rho_wall"
                linkNode                                [1496 1512 1514]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1514
                name                                    "rho_isolation"
                linkNode                                [1496 1513 1515]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1515
                name                                    "c_wall"
                linkNode                                [1496 1514 1516]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1516
                name                                    "c_isolation"
                linkNode                                [1496 1515 1517]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1517
                name                                    "lambda_wall"
                linkNode                                [1496 1516 1518]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1518
                name                                    "lambda_isolation"
                linkNode                                [1496 1517 1519]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1519
                name                                    "L"
                linkNode                                [1496 1518 1520]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1520
                name                                    "zeta"
                linkNode                                [1496 1519 1521]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1521
                name                                    "mode"
                linkNode                                [1496 1520 1522]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1522
                name                                    "p_in_1"
                linkNode                                [1496 1521 1523]
                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                                      1523
                name                                    "rho_in_1"
                linkNode                                [1496 1522 1524]
                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                                      1524
                name                                    "T_in_1"
                linkNode                                [1496 1523 1525]
                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                                      1525
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1496 1524 1526]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1526
                name                                    "x_CO2_in_1"
                linkNode                                [1496 1525 1527]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1527
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1496 1526 1528]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1528
                name                                    "p_in_2"
                linkNode                                [1496 1527 1529]
                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                                      1529
                name                                    "rho_in_2"
                linkNode                                [1496 1528 1530]
                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                                      1530
                name                                    "T_in_2"
                linkNode                                [1496 1529 1531]
                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                                      1531
                name                                    "m_dot_air_2"
                linkNode                                [1496 1530 1532]
                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                                      1532
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1496 1531 1533]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1533
                name                                    "x_CO2_in_2"
                linkNode                                [1496 1532 1534]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1534
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1496 1533 1535]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1535
                name                                    "T_wall"
                linkNode                                [1496 1534 1536]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1536
                name                                    "T_ambient"
                linkNode                                [1496 1535 1537]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1537
                name                                    "Q_dot_fluid"
                linkNode                                [1496 1536 1538]
                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                                      1538
                name                                    "T_dot_wall"
                linkNode                                [1496 1537 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              1539
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                machine         1
                chart           1496
        }

        chart {
                id                                                      1540
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1541 0 0]
                firstTransition                                         1543
                firstJunction                                           1542
                viewObj                                                 1540
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1544
                chartFileNumber                                         70
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1541
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1540
                treeNode                                [1540 0 0 0]
                superState                              SUBCHART
                subviewer                               1540
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 25 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                      1542
                position                [23.5747 49.5747 7]
                chart                   1540
                linkNode                [1540 0 0]
                subviewer               1540
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1543
                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                      1542
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1540
                linkNode                [1540 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1540
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1544
                name                                    "V"
                linkNode                                [1540 0 1545]
                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                                      1545
                name                                    "p_init"
                linkNode                                [1540 1544 1546]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1546
                name                                    "T_init"
                linkNode                                [1540 1545 1547]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1547
                name                                    "x_H2O_gas_init"
                linkNode                                [1540 1546 1548]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1548
                name                                    "x_CO2_init"
                linkNode                                [1540 1547 1549]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1549
                name                                    "x_H2O_liq_init"
                linkNode                                [1540 1548 1550]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1550
                name                                    "m_air_init"
                linkNode                                [1540 1549 1551]
                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                                      1551
                name                                    "m_H2O_gas_init"
                linkNode                                [1540 1550 1552]
                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                                      1552
                name                                    "m_CO2_init"
                linkNode                                [1540 1551 1553]
                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                                      1553
                name                                    "m_H2O_liq_init"
                linkNode                                [1540 1552 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              1554
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                machine         1
                chart           1540
        }

        chart {
                id                                                      1555
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1556 0 0]
                firstTransition                                         1558
                firstJunction                                           1557
                viewObj                                                 1555
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1559
                chartFileNumber                                         71
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1556
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1555
                treeNode                                [1555 0 0 0]
                superState                              SUBCHART
                subviewer                               1555
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1557
                position                [23.5747 49.5747 7]
                chart                   1555
                linkNode                [1555 0 0]
                subviewer               1555
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1558
                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                      1557
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1555
                linkNode                [1555 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1555
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1559
                name                                    "T"
                linkNode                                [1555 0 1560]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1560
                name                                    "T_dot"
                linkNode                                [1555 1559 1561]
                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                                      1561
                name                                    "m_dot_air"
                linkNode                                [1555 1560 1562]
                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                                      1562
                name                                    "m_air"
                linkNode                                [1555 1561 1563]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1563
                name                                    "m_H2O_gas"
                linkNode                                [1555 1562 1564]
                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                                      1564
                name                                    "m_CO2"
                linkNode                                [1555 1563 1565]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1565
                name                                    "m_H2O_liq"
                linkNode                                [1555 1564 1566]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1566
                name                                    "T_in_1"
                linkNode                                [1555 1565 1567]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1567
                name                                    "m_dot_air_in_1"
                linkNode                                [1555 1566 1568]
                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                                      1568
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1555 1567 1569]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1569
                name                                    "x_CO2_in_1"
                linkNode                                [1555 1568 1570]
                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                                      1570
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1555 1569 1571]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1571
                name                                    "T_in_2"
                linkNode                                [1555 1570 1572]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1572
                name                                    "m_dot_air_in_2"
                linkNode                                [1555 1571 1573]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1573
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1555 1572 1574]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1574
                name                                    "x_CO2_in_2"
                linkNode                                [1555 1573 1575]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1575
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1555 1574 1576]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1576
                name                                    "Q_dot"
                linkNode                                [1555 1575 1577]
                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                                      1577
                name                                    "m_dot_H2O_gas"
                linkNode                                [1555 1576 1578]
                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                                      1578
                name                                    "m_dot_CO2"
                linkNode                                [1555 1577 1579]
                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                                      1579
                name                                    "m_dot_H2O_liq"
                linkNode                                [1555 1578 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              1580
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                machine         1
                chart           1555
        }

        chart {
                id                                                      1581
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1582 0 0]
                firstTransition                                         1584
                firstJunction                                           1583
                viewObj                                                 1581
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1585
                chartFileNumber                                         72
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1582
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1581
                treeNode                                [1581 0 0 0]
                superState                              SUBCHART
                subviewer                               1581
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1583
                position                [23.5747 49.5747 7]
                chart                   1581
                linkNode                [1581 0 0]
                subviewer               1581
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1584
                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                      1583
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1581
                linkNode                [1581 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1581
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1585
                name                                    "T"
                linkNode                                [1581 0 1586]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1586
                name                                    "p"
                linkNode                                [1581 1585 1587]
                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                                      1587
                name                                    "rho"
                linkNode                                [1581 1586 1588]
                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                                      1588
                name                                    "m_air"
                linkNode                                [1581 1587 1589]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1589
                name                                    "m_H2O_gas"
                linkNode                                [1581 1588 1590]
                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                                      1590
                name                                    "m_CO2"
                linkNode                                [1581 1589 1591]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1591
                name                                    "m_H2O_liq"
                linkNode                                [1581 1590 1592]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1592
                name                                    "V"
                linkNode                                [1581 1591 1593]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1593
                name                                    "x_H2O_gas"
                linkNode                                [1581 1592 1594]
                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                                      1594
                name                                    "x_CO2"
                linkNode                                [1581 1593 1595]
                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                                      1595
                name                                    "x_H2O_liq"
                linkNode                                [1581 1594 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              1596
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_1/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                machine         1
                chart           1581
        }

        chart {
                id                                                      1597
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                windowPosition                                          [300.45 273.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1598 0 0]
                firstTransition                                         1600
                firstJunction                                           1599
                viewObj                                                 1597
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1601
                chartFileNumber                                         73
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1598
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1597
                treeNode                                [1597 0 0 0]
                superState                              SUBCHART
                subviewer                               1597
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 25 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                      1599
                position                [23.5747 49.5747 7]
                chart                   1597
                linkNode                [1597 0 0]
                subviewer               1597
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1600
                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                      1599
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1597
                linkNode                [1597 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1597
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1601
                name                                    "V"
                linkNode                                [1597 0 1602]
                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                                      1602
                name                                    "p_init"
                linkNode                                [1597 1601 1603]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1603
                name                                    "T_init"
                linkNode                                [1597 1602 1604]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1604
                name                                    "x_H2O_gas_init"
                linkNode                                [1597 1603 1605]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1605
                name                                    "x_CO2_init"
                linkNode                                [1597 1604 1606]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1606
                name                                    "x_H2O_liq_init"
                linkNode                                [1597 1605 1607]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1607
                name                                    "m_air_init"
                linkNode                                [1597 1606 1608]
                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                                      1608
                name                                    "m_H2O_gas_init"
                linkNode                                [1597 1607 1609]
                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                                      1609
                name                                    "m_CO2_init"
                linkNode                                [1597 1608 1610]
                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                                      1610
                name                                    "m_H2O_liq_init"
                linkNode                                [1597 1609 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              1611
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                machine         1
                chart           1597
        }

        chart {
                id                                                      1612
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                windowPosition                                          [417.36 181.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1613 0 0]
                firstTransition                                         1615
                firstJunction                                           1614
                viewObj                                                 1612
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1616
                chartFileNumber                                         74
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1613
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1612
                treeNode                                [1612 0 0 0]
                superState                              SUBCHART
                subviewer                               1612
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1614
                position                [23.5747 49.5747 7]
                chart                   1612
                linkNode                [1612 0 0]
                subviewer               1612
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1615
                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                      1614
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1612
                linkNode                [1612 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1612
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1616
                name                                    "T"
                linkNode                                [1612 0 1617]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1617
                name                                    "T_dot"
                linkNode                                [1612 1616 1618]
                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                                      1618
                name                                    "m_dot_air"
                linkNode                                [1612 1617 1619]
                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                                      1619
                name                                    "m_air"
                linkNode                                [1612 1618 1620]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1620
                name                                    "m_H2O_gas"
                linkNode                                [1612 1619 1621]
                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                                      1621
                name                                    "m_CO2"
                linkNode                                [1612 1620 1622]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1622
                name                                    "m_H2O_liq"
                linkNode                                [1612 1621 1623]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1623
                name                                    "T_in_1"
                linkNode                                [1612 1622 1624]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1624
                name                                    "m_dot_air_in_1"
                linkNode                                [1612 1623 1625]
                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                                      1625
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1612 1624 1626]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1626
                name                                    "x_CO2_in_1"
                linkNode                                [1612 1625 1627]
                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                                      1627
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1612 1626 1628]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1628
                name                                    "T_in_2"
                linkNode                                [1612 1627 1629]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1629
                name                                    "m_dot_air_in_2"
                linkNode                                [1612 1628 1630]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1630
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1612 1629 1631]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1631
                name                                    "x_CO2_in_2"
                linkNode                                [1612 1630 1632]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1632
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1612 1631 1633]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1633
                name                                    "Q_dot"
                linkNode                                [1612 1632 1634]
                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                                      1634
                name                                    "m_dot_H2O_gas"
                linkNode                                [1612 1633 1635]
                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                                      1635
                name                                    "m_dot_CO2"
                linkNode                                [1612 1634 1636]
                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                                      1636
                name                                    "m_dot_H2O_liq"
                linkNode                                [1612 1635 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              1637
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                machine         1
                chart           1612
        }

        chart {
                id                                                      1638
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                windowPosition                                          [357.288 255.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1639 0 0]
                firstTransition                                         1641
                firstJunction                                           1640
                viewObj                                                 1638
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1642
                chartFileNumber                                         75
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1639
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1638
                treeNode                                [1638 0 0 0]
                superState                              SUBCHART
                subviewer                               1638
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1640
                position                [23.5747 49.5747 7]
                chart                   1638
                linkNode                [1638 0 0]
                subviewer               1638
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1641
                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                      1640
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1638
                linkNode                [1638 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1638
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1642
                name                                    "T"
                linkNode                                [1638 0 1643]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1643
                name                                    "p"
                linkNode                                [1638 1642 1644]
                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                                      1644
                name                                    "rho"
                linkNode                                [1638 1643 1645]
                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                                      1645
                name                                    "m_air"
                linkNode                                [1638 1644 1646]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1646
                name                                    "m_H2O_gas"
                linkNode                                [1638 1645 1647]
                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                                      1647
                name                                    "m_CO2"
                linkNode                                [1638 1646 1648]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1648
                name                                    "m_H2O_liq"
                linkNode                                [1638 1647 1649]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1649
                name                                    "V"
                linkNode                                [1638 1648 1650]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1650
                name                                    "x_H2O_gas"
                linkNode                                [1638 1649 1651]
                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                                      1651
                name                                    "x_CO2"
                linkNode                                [1638 1650 1652]
                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                                      1652
                name                                    "x_H2O_liq"
                linkNode                                [1638 1651 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              1653
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_2/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                machine         1
                chart           1638
        }

        chart {
                id                                                      1654
                name                                                    "Vol_1D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [225.45 348.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 1655 0 0]
                firstTransition                                         1657
                firstJunction                                           1656
                viewObj                                                 1654
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1658
                chartFileNumber                                         76
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1655
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1654
                treeNode                                [1654 0 0 0]
                superState                              SUBCHART
                subviewer                               1654
                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 volume with 1 aperture\n"
                                                "% *\n"
                                                "% * Number of Inputs:        2\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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 33 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                      1656
                position                [23.5747 49.5747 7]
                chart                   1654
                linkNode                [1654 0 0]
                subviewer               1654
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1657
                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                      1656
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1654
                linkNode                [1654 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1654
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1658
                name                                    "V"
                linkNode                                [1654 0 1659]
                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                                      1659
                name                                    "p_init"
                linkNode                                [1654 1658 1660]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1660
                name                                    "T_init"
                linkNode                                [1654 1659 1661]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1661
                name                                    "x_H2O_gas_init"
                linkNode                                [1654 1660 1662]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1662
                name                                    "x_CO2_init"
                linkNode                                [1654 1661 1663]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1663
                name                                    "x_H2O_liq_init"
                linkNode                                [1654 1662 1664]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1664
                name                                    "m_air_init"
                linkNode                                [1654 1663 1665]
                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                                      1665
                name                                    "m_H2O_gas_init"
                linkNode                                [1654 1664 1666]
                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                                      1666
                name                                    "m_CO2_init"
                linkNode                                [1654 1665 1667]
                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                                      1667
                name                                    "m_H2O_liq_init"
                linkNode                                [1654 1666 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              1668
                name            "Vol_1D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1654
        }

        chart {
                id                                                      1669
                name                                                    "Vol_4D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [408.288 206.344 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1670 0 0]
                firstTransition                                         1672
                firstJunction                                           1671
                viewObj                                                 1669
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1673
                chartFileNumber                                         77
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1670
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1669
                treeNode                                [1669 0 0 0]
                superState                              SUBCHART
                subviewer                               1669
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 4 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        5\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1671
                position                [23.5747 49.5747 7]
                chart                   1669
                linkNode                [1669 0 0]
                subviewer               1669
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1672
                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                      1671
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1669
                linkNode                [1669 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1669
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1673
                name                                    "T"
                linkNode                                [1669 0 1674]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1674
                name                                    "p"
                linkNode                                [1669 1673 1675]
                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                                      1675
                name                                    "rho"
                linkNode                                [1669 1674 1676]
                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                                      1676
                name                                    "m_air"
                linkNode                                [1669 1675 1677]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1677
                name                                    "m_H2O_gas"
                linkNode                                [1669 1676 1678]
                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                                      1678
                name                                    "m_CO2"
                linkNode                                [1669 1677 1679]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1679
                name                                    "m_H2O_liq"
                linkNode                                [1669 1678 1680]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1680
                name                                    "V"
                linkNode                                [1669 1679 1681]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1681
                name                                    "x_H2O_gas"
                linkNode                                [1669 1680 1682]
                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                                      1682
                name                                    "x_CO2"
                linkNode                                [1669 1681 1683]
                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                                      1683
                name                                    "x_H2O_liq"
                linkNode                                [1669 1682 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              1684
                name            "Vol_4D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           1669
        }

        chart {
                id                                                      1685
                name                                                    "Vol_3D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [255.45 318.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 1686 0 0]
                firstTransition                                         1688
                firstJunction                                           1687
                viewObj                                                 1685
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1689
                chartFileNumber                                         78
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1686
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1685
                treeNode                                [1685 0 0 0]
                superState                              SUBCHART
                subviewer                               1685
                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 volume with 3 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        4\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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 Vol_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 33 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                      1687
                position                [23.5747 49.5747 7]
                chart                   1685
                linkNode                [1685 0 0]
                subviewer               1685
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1688
                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                      1687
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1685
                linkNode                [1685 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1685
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1689
                name                                    "V"
                linkNode                                [1685 0 1690]
                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                                      1690
                name                                    "p_init"
                linkNode                                [1685 1689 1691]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1691
                name                                    "T_init"
                linkNode                                [1685 1690 1692]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1692
                name                                    "x_H2O_gas_init"
                linkNode                                [1685 1691 1693]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1693
                name                                    "x_CO2_init"
                linkNode                                [1685 1692 1694]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1694
                name                                    "x_H2O_liq_init"
                linkNode                                [1685 1693 1695]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1695
                name                                    "m_air_init"
                linkNode                                [1685 1694 1696]
                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                                      1696
                name                                    "m_H2O_gas_init"
                linkNode                                [1685 1695 1697]
                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                                      1697
                name                                    "m_CO2_init"
                linkNode                                [1685 1696 1698]
                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                                      1698
                name                                    "m_H2O_liq_init"
                linkNode                                [1685 1697 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              1699
                name            "Vol_3D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1685
        }

        chart {
                id                                                      1700
                name                                                    "Duct_10x_/Vol_2D_10/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [285.45 288.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1701 0 0]
                firstTransition                                         1703
                firstJunction                                           1702
                viewObj                                                 1700
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1704
                chartFileNumber                                         79
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1701
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1700
                treeNode                                [1700 0 0 0]
                superState                              SUBCHART
                subviewer                               1700
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 144 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                      1702
                position                [23.5747 49.5747 7]
                chart                   1700
                linkNode                [1700 0 0]
                subviewer               1700
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1703
                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                      1702
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1700
                linkNode                [1700 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               1700
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1704
                name                                    "V"
                linkNode                                [1700 0 1705]
                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                                      1705
                name                                    "p_init"
                linkNode                                [1700 1704 1706]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1706
                name                                    "T_init"
                linkNode                                [1700 1705 1707]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1707
                name                                    "x_H2O_gas_init"
                linkNode                                [1700 1706 1708]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1708
                name                                    "x_CO2_init"
                linkNode                                [1700 1707 1709]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1709
                name                                    "x_H2O_liq_init"
                linkNode                                [1700 1708 1710]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1710
                name                                    "m_air_init"
                linkNode                                [1700 1709 1711]
                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                                      1711
                name                                    "m_H2O_gas_init"
                linkNode                                [1700 1710 1712]
                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                                      1712
                name                                    "m_CO2_init"
                linkNode                                [1700 1711 1713]
                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                                      1713
                name                                    "m_H2O_liq_init"
                linkNode                                [1700 1712 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              1714
                name            "Duct_10x_/Vol_2D_10/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1700
        }

        chart {
                id                                                      1715
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [468.45 162.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1716 0 0]
                firstTransition                                         1718
                firstJunction                                           1717
                viewObj                                                 1715
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1719
                chartFileNumber                                         80
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      1716
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1715
                treeNode                                [1715 0 0 0]
                superState                              SUBCHART
                subviewer                               1715
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V=(pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1717
                position                [23.5747 49.5747 7]
                chart                   1715
                linkNode                [1715 0 0]
                subviewer               1715
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1718
                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                      1717
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1715
                linkNode                [1715 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1715
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1719
                name                                    "L"
                linkNode                                [1715 0 1720]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1720
                name                                    "D_major"
                linkNode                                [1715 1719 1721]
                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                                      1721
                name                                    "V"
                linkNode                                [1715 1720 1722]
                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                                      1722
                name                                    "D_minor"
                linkNode                                [1715 1721 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              1723
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1715
        }

        chart {
                id                                                      1724
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                windowPosition                                          [612.23 28.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1725 0 0]
                firstTransition                                         1727
                firstJunction                                           1726
                viewObj                                                 1724
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1728
                chartFileNumber                                         81
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1725
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1724
                treeNode                                [1724 0 0 0]
                superState                              SUBCHART
                subviewer                               1724
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      1726
                position                [23.5747 49.5747 7]
                chart                   1724
                linkNode                [1724 0 0]
                subviewer               1724
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1727
                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                      1726
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1724
                linkNode                [1724 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1724
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1728
                name                                    "n_unit"
                linkNode                                [1724 0 1729]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1729
                name                                    "rho"
                linkNode                                [1724 1728 1730]
                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                                      1730
                name                                    "T"
                linkNode                                [1724 1729 1731]
                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                                      1731
                name                                    "x_H2O_gas"
                linkNode                                [1724 1730 1732]
                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                                      1732
                name                                    "x_CO2"
                linkNode                                [1724 1731 1733]
                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                                      1733
                name                                    "x_H2O_liq"
                linkNode                                [1724 1732 1734]
                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                                      1734
                name                                    "p_1"
                linkNode                                [1724 1733 1735]
                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                                      1735
                name                                    "m_dot_air_1"
                linkNode                                [1724 1734 1736]
                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                                      1736
                name                                    "p_2"
                linkNode                                [1724 1735 1737]
                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                                      1737
                name                                    "D_major"
                linkNode                                [1724 1736 1738]
                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                                      1738
                name                                    "D_minor"
                linkNode                                [1724 1737 1739]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1739
                name                                    "b_wall"
                linkNode                                [1724 1738 1740]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1740
                name                                    "b_isolation"
                linkNode                                [1724 1739 1741]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1741
                name                                    "rho_wall"
                linkNode                                [1724 1740 1742]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1742
                name                                    "rho_isolation"
                linkNode                                [1724 1741 1743]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1743
                name                                    "c_wall"
                linkNode                                [1724 1742 1744]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1744
                name                                    "c_isolation"
                linkNode                                [1724 1743 1745]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1745
                name                                    "lambda_wall"
                linkNode                                [1724 1744 1746]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1746
                name                                    "lambda_isolation"
                linkNode                                [1724 1745 1747]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1747
                name                                    "L"
                linkNode                                [1724 1746 1748]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1748
                name                                    "zeta"
                linkNode                                [1724 1747 1749]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1749
                name                                    "mode"
                linkNode                                [1724 1748 1750]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1750
                name                                    "p_in_1"
                linkNode                                [1724 1749 1751]
                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                                      1751
                name                                    "rho_in_1"
                linkNode                                [1724 1750 1752]
                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                                      1752
                name                                    "T_in_1"
                linkNode                                [1724 1751 1753]
                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                                      1753
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1724 1752 1754]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1754
                name                                    "x_CO2_in_1"
                linkNode                                [1724 1753 1755]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1755
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1724 1754 1756]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1756
                name                                    "p_in_2"
                linkNode                                [1724 1755 1757]
                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                                      1757
                name                                    "rho_in_2"
                linkNode                                [1724 1756 1758]
                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                                      1758
                name                                    "T_in_2"
                linkNode                                [1724 1757 1759]
                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                                      1759
                name                                    "m_dot_air_2"
                linkNode                                [1724 1758 1760]
                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                                      1760
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1724 1759 1761]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1761
                name                                    "x_CO2_in_2"
                linkNode                                [1724 1760 1762]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1762
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1724 1761 1763]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1763
                name                                    "T_wall"
                linkNode                                [1724 1762 1764]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1764
                name                                    "T_ambient"
                linkNode                                [1724 1763 1765]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1765
                name                                    "Q_dot_fluid"
                linkNode                                [1724 1764 1766]
                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                                      1766
                name                                    "T_dot_wall"
                linkNode                                [1724 1765 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              1767
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                machine         1
                chart           1724
        }

        chart {
                id                                                      1768
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                windowPosition                                          [300.45 273.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1769 0 0]
                firstTransition                                         1771
                firstJunction                                           1770
                viewObj                                                 1768
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1772
                chartFileNumber                                         82
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1769
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1768
                treeNode                                [1768 0 0 0]
                superState                              SUBCHART
                subviewer                               1768
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 25 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                      1770
                position                [23.5747 49.5747 7]
                chart                   1768
                linkNode                [1768 0 0]
                subviewer               1768
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1771
                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                      1770
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1768
                linkNode                [1768 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1768
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1772
                name                                    "V"
                linkNode                                [1768 0 1773]
                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                                      1773
                name                                    "p_init"
                linkNode                                [1768 1772 1774]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1774
                name                                    "T_init"
                linkNode                                [1768 1773 1775]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1775
                name                                    "x_H2O_gas_init"
                linkNode                                [1768 1774 1776]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1776
                name                                    "x_CO2_init"
                linkNode                                [1768 1775 1777]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1777
                name                                    "x_H2O_liq_init"
                linkNode                                [1768 1776 1778]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1778
                name                                    "m_air_init"
                linkNode                                [1768 1777 1779]
                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                                      1779
                name                                    "m_H2O_gas_init"
                linkNode                                [1768 1778 1780]
                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                                      1780
                name                                    "m_CO2_init"
                linkNode                                [1768 1779 1781]
                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                                      1781
                name                                    "m_H2O_liq_init"
                linkNode                                [1768 1780 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              1782
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                machine         1
                chart           1768
        }

        chart {
                id                                                      1783
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                windowPosition                                          [417.36 181.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1784 0 0]
                firstTransition                                         1786
                firstJunction                                           1785
                viewObj                                                 1783
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1787
                chartFileNumber                                         83
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1784
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1783
                treeNode                                [1783 0 0 0]
                superState                              SUBCHART
                subviewer                               1783
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1785
                position                [23.5747 49.5747 7]
                chart                   1783
                linkNode                [1783 0 0]
                subviewer               1783
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1786
                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                      1785
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1783
                linkNode                [1783 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1783
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1787
                name                                    "T"
                linkNode                                [1783 0 1788]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1788
                name                                    "T_dot"
                linkNode                                [1783 1787 1789]
                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                                      1789
                name                                    "m_dot_air"
                linkNode                                [1783 1788 1790]
                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                                      1790
                name                                    "m_air"
                linkNode                                [1783 1789 1791]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1791
                name                                    "m_H2O_gas"
                linkNode                                [1783 1790 1792]
                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                                      1792
                name                                    "m_CO2"
                linkNode                                [1783 1791 1793]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1793
                name                                    "m_H2O_liq"
                linkNode                                [1783 1792 1794]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1794
                name                                    "T_in_1"
                linkNode                                [1783 1793 1795]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1795
                name                                    "m_dot_air_in_1"
                linkNode                                [1783 1794 1796]
                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                                      1796
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1783 1795 1797]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1797
                name                                    "x_CO2_in_1"
                linkNode                                [1783 1796 1798]
                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                                      1798
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1783 1797 1799]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1799
                name                                    "T_in_2"
                linkNode                                [1783 1798 1800]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1800
                name                                    "m_dot_air_in_2"
                linkNode                                [1783 1799 1801]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1801
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1783 1800 1802]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1802
                name                                    "x_CO2_in_2"
                linkNode                                [1783 1801 1803]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1803
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1783 1802 1804]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1804
                name                                    "Q_dot"
                linkNode                                [1783 1803 1805]
                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                                      1805
                name                                    "m_dot_H2O_gas"
                linkNode                                [1783 1804 1806]
                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                                      1806
                name                                    "m_dot_CO2"
                linkNode                                [1783 1805 1807]
                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                                      1807
                name                                    "m_dot_H2O_liq"
                linkNode                                [1783 1806 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              1808
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                machine         1
                chart           1783
        }

        chart {
                id                                                      1809
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                windowPosition                                          [357.288 255.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1810 0 0]
                firstTransition                                         1812
                firstJunction                                           1811
                viewObj                                                 1809
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1813
                chartFileNumber                                         84
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1810
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1809
                treeNode                                [1809 0 0 0]
                superState                              SUBCHART
                subviewer                               1809
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1811
                position                [23.5747 49.5747 7]
                chart                   1809
                linkNode                [1809 0 0]
                subviewer               1809
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1812
                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                      1811
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1809
                linkNode                [1809 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1809
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1813
                name                                    "T"
                linkNode                                [1809 0 1814]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1814
                name                                    "p"
                linkNode                                [1809 1813 1815]
                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                                      1815
                name                                    "rho"
                linkNode                                [1809 1814 1816]
                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                                      1816
                name                                    "m_air"
                linkNode                                [1809 1815 1817]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1817
                name                                    "m_H2O_gas"
                linkNode                                [1809 1816 1818]
                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                                      1818
                name                                    "m_CO2"
                linkNode                                [1809 1817 1819]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1819
                name                                    "m_H2O_liq"
                linkNode                                [1809 1818 1820]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1820
                name                                    "V"
                linkNode                                [1809 1819 1821]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1821
                name                                    "x_H2O_gas"
                linkNode                                [1809 1820 1822]
                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                                      1822
                name                                    "x_CO2"
                linkNode                                [1809 1821 1823]
                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                                      1823
                name                                    "x_H2O_liq"
                linkNode                                [1809 1822 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              1824
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_3/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                machine         1
                chart           1809
        }

        chart {
                id                                                      1825
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [468.45 162.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1826 0 0]
                firstTransition                                         1828
                firstJunction                                           1827
                viewObj                                                 1825
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1829
                chartFileNumber                                         85
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      1826
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1825
                treeNode                                [1825 0 0 0]
                superState                              SUBCHART
                subviewer                               1825
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V=(pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1827
                position                [23.5747 49.5747 7]
                chart                   1825
                linkNode                [1825 0 0]
                subviewer               1825
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1828
                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                      1827
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1825
                linkNode                [1825 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1825
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1829
                name                                    "L"
                linkNode                                [1825 0 1830]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1830
                name                                    "D_major"
                linkNode                                [1825 1829 1831]
                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                                      1831
                name                                    "V"
                linkNode                                [1825 1830 1832]
                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                                      1832
                name                                    "D_minor"
                linkNode                                [1825 1831 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              1833
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1825
        }

        chart {
                id                                                      1834
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                windowPosition                                          [612.23 28.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1835 0 0]
                firstTransition                                         1837
                firstJunction                                           1836
                viewObj                                                 1834
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1838
                chartFileNumber                                         86
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1835
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1834
                treeNode                                [1834 0 0 0]
                superState                              SUBCHART
                subviewer                               1834
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      1836
                position                [23.5747 49.5747 7]
                chart                   1834
                linkNode                [1834 0 0]
                subviewer               1834
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1837
                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                      1836
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1834
                linkNode                [1834 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1834
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1838
                name                                    "n_unit"
                linkNode                                [1834 0 1839]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1839
                name                                    "rho"
                linkNode                                [1834 1838 1840]
                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                                      1840
                name                                    "T"
                linkNode                                [1834 1839 1841]
                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                                      1841
                name                                    "x_H2O_gas"
                linkNode                                [1834 1840 1842]
                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                                      1842
                name                                    "x_CO2"
                linkNode                                [1834 1841 1843]
                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                                      1843
                name                                    "x_H2O_liq"
                linkNode                                [1834 1842 1844]
                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                                      1844
                name                                    "p_1"
                linkNode                                [1834 1843 1845]
                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                                      1845
                name                                    "m_dot_air_1"
                linkNode                                [1834 1844 1846]
                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                                      1846
                name                                    "p_2"
                linkNode                                [1834 1845 1847]
                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                                      1847
                name                                    "D_major"
                linkNode                                [1834 1846 1848]
                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                                      1848
                name                                    "D_minor"
                linkNode                                [1834 1847 1849]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1849
                name                                    "b_wall"
                linkNode                                [1834 1848 1850]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1850
                name                                    "b_isolation"
                linkNode                                [1834 1849 1851]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1851
                name                                    "rho_wall"
                linkNode                                [1834 1850 1852]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1852
                name                                    "rho_isolation"
                linkNode                                [1834 1851 1853]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1853
                name                                    "c_wall"
                linkNode                                [1834 1852 1854]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1854
                name                                    "c_isolation"
                linkNode                                [1834 1853 1855]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1855
                name                                    "lambda_wall"
                linkNode                                [1834 1854 1856]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1856
                name                                    "lambda_isolation"
                linkNode                                [1834 1855 1857]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1857
                name                                    "L"
                linkNode                                [1834 1856 1858]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1858
                name                                    "zeta"
                linkNode                                [1834 1857 1859]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1859
                name                                    "mode"
                linkNode                                [1834 1858 1860]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1860
                name                                    "p_in_1"
                linkNode                                [1834 1859 1861]
                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                                      1861
                name                                    "rho_in_1"
                linkNode                                [1834 1860 1862]
                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                                      1862
                name                                    "T_in_1"
                linkNode                                [1834 1861 1863]
                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                                      1863
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1834 1862 1864]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1864
                name                                    "x_CO2_in_1"
                linkNode                                [1834 1863 1865]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1865
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1834 1864 1866]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1866
                name                                    "p_in_2"
                linkNode                                [1834 1865 1867]
                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                                      1867
                name                                    "rho_in_2"
                linkNode                                [1834 1866 1868]
                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                                      1868
                name                                    "T_in_2"
                linkNode                                [1834 1867 1869]
                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                                      1869
                name                                    "m_dot_air_2"
                linkNode                                [1834 1868 1870]
                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                                      1870
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1834 1869 1871]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1871
                name                                    "x_CO2_in_2"
                linkNode                                [1834 1870 1872]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1872
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1834 1871 1873]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1873
                name                                    "T_wall"
                linkNode                                [1834 1872 1874]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1874
                name                                    "T_ambient"
                linkNode                                [1834 1873 1875]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1875
                name                                    "Q_dot_fluid"
                linkNode                                [1834 1874 1876]
                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                                      1876
                name                                    "T_dot_wall"
                linkNode                                [1834 1875 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              1877
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                machine         1
                chart           1834
        }

        chart {
                id                                                      1878
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                windowPosition                                          [300.45 273.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1879 0 0]
                firstTransition                                         1881
                firstJunction                                           1880
                viewObj                                                 1878
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1882
                chartFileNumber                                         87
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1879
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1878
                treeNode                                [1878 0 0 0]
                superState                              SUBCHART
                subviewer                               1878
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 25 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                      1880
                position                [23.5747 49.5747 7]
                chart                   1878
                linkNode                [1878 0 0]
                subviewer               1878
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1881
                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                      1880
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1878
                linkNode                [1878 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1878
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1882
                name                                    "V"
                linkNode                                [1878 0 1883]
                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                                      1883
                name                                    "p_init"
                linkNode                                [1878 1882 1884]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1884
                name                                    "T_init"
                linkNode                                [1878 1883 1885]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1885
                name                                    "x_H2O_gas_init"
                linkNode                                [1878 1884 1886]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1886
                name                                    "x_CO2_init"
                linkNode                                [1878 1885 1887]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1887
                name                                    "x_H2O_liq_init"
                linkNode                                [1878 1886 1888]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1888
                name                                    "m_air_init"
                linkNode                                [1878 1887 1889]
                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                                      1889
                name                                    "m_H2O_gas_init"
                linkNode                                [1878 1888 1890]
                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                                      1890
                name                                    "m_CO2_init"
                linkNode                                [1878 1889 1891]
                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                                      1891
                name                                    "m_H2O_liq_init"
                linkNode                                [1878 1890 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              1892
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                machine         1
                chart           1878
        }

        chart {
                id                                                      1893
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                windowPosition                                          [417.36 181.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1894 0 0]
                firstTransition                                         1896
                firstJunction                                           1895
                viewObj                                                 1893
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1897
                chartFileNumber                                         88
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      1894
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1893
                treeNode                                [1893 0 0 0]
                superState                              SUBCHART
                subviewer                               1893
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      1895
                position                [23.5747 49.5747 7]
                chart                   1893
                linkNode                [1893 0 0]
                subviewer               1893
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1896
                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                      1895
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1893
                linkNode                [1893 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1893
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1897
                name                                    "T"
                linkNode                                [1893 0 1898]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1898
                name                                    "T_dot"
                linkNode                                [1893 1897 1899]
                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                                      1899
                name                                    "m_dot_air"
                linkNode                                [1893 1898 1900]
                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                                      1900
                name                                    "m_air"
                linkNode                                [1893 1899 1901]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1901
                name                                    "m_H2O_gas"
                linkNode                                [1893 1900 1902]
                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                                      1902
                name                                    "m_CO2"
                linkNode                                [1893 1901 1903]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1903
                name                                    "m_H2O_liq"
                linkNode                                [1893 1902 1904]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1904
                name                                    "T_in_1"
                linkNode                                [1893 1903 1905]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1905
                name                                    "m_dot_air_in_1"
                linkNode                                [1893 1904 1906]
                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                                      1906
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1893 1905 1907]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1907
                name                                    "x_CO2_in_1"
                linkNode                                [1893 1906 1908]
                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                                      1908
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1893 1907 1909]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1909
                name                                    "T_in_2"
                linkNode                                [1893 1908 1910]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1910
                name                                    "m_dot_air_in_2"
                linkNode                                [1893 1909 1911]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1911
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1893 1910 1912]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1912
                name                                    "x_CO2_in_2"
                linkNode                                [1893 1911 1913]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1913
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1893 1912 1914]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1914
                name                                    "Q_dot"
                linkNode                                [1893 1913 1915]
                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                                      1915
                name                                    "m_dot_H2O_gas"
                linkNode                                [1893 1914 1916]
                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                                      1916
                name                                    "m_dot_CO2"
                linkNode                                [1893 1915 1917]
                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                                      1917
                name                                    "m_dot_H2O_liq"
                linkNode                                [1893 1916 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              1918
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                machine         1
                chart           1893
        }

        chart {
                id                                                      1919
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                windowPosition                                          [357.288 255.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1920 0 0]
                firstTransition                                         1922
                firstJunction                                           1921
                viewObj                                                 1919
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1923
                chartFileNumber                                         89
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      1920
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1919
                treeNode                                [1919 0 0 0]
                superState                              SUBCHART
                subviewer                               1919
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      1921
                position                [23.5747 49.5747 7]
                chart                   1919
                linkNode                [1919 0 0]
                subviewer               1919
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1922
                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                      1921
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1919
                linkNode                [1919 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1919
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1923
                name                                    "T"
                linkNode                                [1919 0 1924]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1924
                name                                    "p"
                linkNode                                [1919 1923 1925]
                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                                      1925
                name                                    "rho"
                linkNode                                [1919 1924 1926]
                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                                      1926
                name                                    "m_air"
                linkNode                                [1919 1925 1927]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1927
                name                                    "m_H2O_gas"
                linkNode                                [1919 1926 1928]
                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                                      1928
                name                                    "m_CO2"
                linkNode                                [1919 1927 1929]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1929
                name                                    "m_H2O_liq"
                linkNode                                [1919 1928 1930]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1930
                name                                    "V"
                linkNode                                [1919 1929 1931]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1931
                name                                    "x_H2O_gas"
                linkNode                                [1919 1930 1932]
                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                                      1932
                name                                    "x_CO2"
                linkNode                                [1919 1931 1933]
                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                                      1933
                name                                    "x_H2O_liq"
                linkNode                                [1919 1932 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              1934
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_4/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                machine         1
                chart           1919
        }

        chart {
                id                                                      1935
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [468.45 162.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1936 0 0]
                firstTransition                                         1938
                firstJunction                                           1937
                viewObj                                                 1935
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1939
                chartFileNumber                                         90
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      1936
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1935
                treeNode                                [1935 0 0 0]
                superState                              SUBCHART
                subviewer                               1935
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V=(pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      1937
                position                [23.5747 49.5747 7]
                chart                   1935
                linkNode                [1935 0 0]
                subviewer               1935
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1938
                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                      1937
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1935
                linkNode                [1935 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1935
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1939
                name                                    "L"
                linkNode                                [1935 0 1940]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1940
                name                                    "D_major"
                linkNode                                [1935 1939 1941]
                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                                      1941
                name                                    "V"
                linkNode                                [1935 1940 1942]
                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                                      1942
                name                                    "D_minor"
                linkNode                                [1935 1941 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              1943
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           1935
        }

        chart {
                id                                                      1944
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                windowPosition                                          [612.23 28.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1945 0 0]
                firstTransition                                         1947
                firstJunction                                           1946
                viewObj                                                 1944
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1948
                chartFileNumber                                         91
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      1945
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1944
                treeNode                                [1944 0 0 0]
                superState                              SUBCHART
                subviewer                               1944
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      1946
                position                [23.5747 49.5747 7]
                chart                   1944
                linkNode                [1944 0 0]
                subviewer               1944
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1947
                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                      1946
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1944
                linkNode                [1944 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1944
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1948
                name                                    "n_unit"
                linkNode                                [1944 0 1949]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1949
                name                                    "rho"
                linkNode                                [1944 1948 1950]
                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                                      1950
                name                                    "T"
                linkNode                                [1944 1949 1951]
                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                                      1951
                name                                    "x_H2O_gas"
                linkNode                                [1944 1950 1952]
                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                                      1952
                name                                    "x_CO2"
                linkNode                                [1944 1951 1953]
                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                                      1953
                name                                    "x_H2O_liq"
                linkNode                                [1944 1952 1954]
                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                                      1954
                name                                    "p_1"
                linkNode                                [1944 1953 1955]
                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                                      1955
                name                                    "m_dot_air_1"
                linkNode                                [1944 1954 1956]
                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                                      1956
                name                                    "p_2"
                linkNode                                [1944 1955 1957]
                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                                      1957
                name                                    "D_major"
                linkNode                                [1944 1956 1958]
                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                                      1958
                name                                    "D_minor"
                linkNode                                [1944 1957 1959]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1959
                name                                    "b_wall"
                linkNode                                [1944 1958 1960]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1960
                name                                    "b_isolation"
                linkNode                                [1944 1959 1961]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1961
                name                                    "rho_wall"
                linkNode                                [1944 1960 1962]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1962
                name                                    "rho_isolation"
                linkNode                                [1944 1961 1963]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1963
                name                                    "c_wall"
                linkNode                                [1944 1962 1964]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1964
                name                                    "c_isolation"
                linkNode                                [1944 1963 1965]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1965
                name                                    "lambda_wall"
                linkNode                                [1944 1964 1966]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1966
                name                                    "lambda_isolation"
                linkNode                                [1944 1965 1967]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1967
                name                                    "L"
                linkNode                                [1944 1966 1968]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1968
                name                                    "zeta"
                linkNode                                [1944 1967 1969]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1969
                name                                    "mode"
                linkNode                                [1944 1968 1970]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1970
                name                                    "p_in_1"
                linkNode                                [1944 1969 1971]
                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                                      1971
                name                                    "rho_in_1"
                linkNode                                [1944 1970 1972]
                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                                      1972
                name                                    "T_in_1"
                linkNode                                [1944 1971 1973]
                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                                      1973
                name                                    "x_H2O_gas_in_1"
                linkNode                                [1944 1972 1974]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1974
                name                                    "x_CO2_in_1"
                linkNode                                [1944 1973 1975]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1975
                name                                    "x_H2O_liq_in_1"
                linkNode                                [1944 1974 1976]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1976
                name                                    "p_in_2"
                linkNode                                [1944 1975 1977]
                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                                      1977
                name                                    "rho_in_2"
                linkNode                                [1944 1976 1978]
                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                                      1978
                name                                    "T_in_2"
                linkNode                                [1944 1977 1979]
                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                                      1979
                name                                    "m_dot_air_2"
                linkNode                                [1944 1978 1980]
                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                                      1980
                name                                    "x_H2O_gas_in_2"
                linkNode                                [1944 1979 1981]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1981
                name                                    "x_CO2_in_2"
                linkNode                                [1944 1980 1982]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1982
                name                                    "x_H2O_liq_in_2"
                linkNode                                [1944 1981 1983]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1983
                name                                    "T_wall"
                linkNode                                [1944 1982 1984]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1984
                name                                    "T_ambient"
                linkNode                                [1944 1983 1985]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1985
                name                                    "Q_dot_fluid"
                linkNode                                [1944 1984 1986]
                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                                      1986
                name                                    "T_dot_wall"
                linkNode                                [1944 1985 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              1987
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/FR/Embedded"
                                        "\n"
                                        "MATLA Function"
                machine         1
                chart           1944
        }

        chart {
                id                                                      1988
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                windowPosition                                          [300.45 273.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 1989 0 0]
                firstTransition                                         1991
                firstJunction                                           1990
                viewObj                                                 1988
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               1992
                chartFileNumber                                         92
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      1989
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   1988
                treeNode                                [1988 0 0 0]
                superState                              SUBCHART
                subviewer                               1988
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[35 25 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                      1990
                position                [23.5747 49.5747 7]
                chart                   1988
                linkNode                [1988 0 0]
                subviewer               1988
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      1991
                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                      1990
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   1988
                linkNode                [1988 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               1988
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      1992
                name                                    "V"
                linkNode                                [1988 0 1993]
                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                                      1993
                name                                    "p_init"
                linkNode                                [1988 1992 1994]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1994
                name                                    "T_init"
                linkNode                                [1988 1993 1995]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1995
                name                                    "x_H2O_gas_init"
                linkNode                                [1988 1994 1996]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1996
                name                                    "x_CO2_init"
                linkNode                                [1988 1995 1997]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1997
                name                                    "x_H2O_liq_init"
                linkNode                                [1988 1996 1998]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      1998
                name                                    "m_air_init"
                linkNode                                [1988 1997 1999]
                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                                      1999
                name                                    "m_H2O_gas_init"
                linkNode                                [1988 1998 2000]
                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                                      2000
                name                                    "m_CO2_init"
                linkNode                                [1988 1999 2001]
                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                                      2001
                name                                    "m_H2O_liq_init"
                linkNode                                [1988 2000 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              2002
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded\n"
                                        "MATLAB Function"
                machine         1
                chart           1988
        }

        chart {
                id                                                      2003
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                windowPosition                                          [417.36 181.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2004 0 0]
                firstTransition                                         2006
                firstJunction                                           2005
                viewObj                                                 2003
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2007
                chartFileNumber                                         93
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      2004
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2003
                treeNode                                [2003 0 0 0]
                superState                              SUBCHART
                subviewer                               2003
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      2005
                position                [23.5747 49.5747 7]
                chart                   2003
                linkNode                [2003 0 0]
                subviewer               2003
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2006
                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                      2005
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2003
                linkNode                [2003 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2003
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2007
                name                                    "T"
                linkNode                                [2003 0 2008]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2008
                name                                    "T_dot"
                linkNode                                [2003 2007 2009]
                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                                      2009
                name                                    "m_dot_air"
                linkNode                                [2003 2008 2010]
                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                                      2010
                name                                    "m_air"
                linkNode                                [2003 2009 2011]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2011
                name                                    "m_H2O_gas"
                linkNode                                [2003 2010 2012]
                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                                      2012
                name                                    "m_CO2"
                linkNode                                [2003 2011 2013]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2013
                name                                    "m_H2O_liq"
                linkNode                                [2003 2012 2014]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2014
                name                                    "T_in_1"
                linkNode                                [2003 2013 2015]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2015
                name                                    "m_dot_air_in_1"
                linkNode                                [2003 2014 2016]
                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                                      2016
                name                                    "x_H2O_gas_in_1"
                linkNode                                [2003 2015 2017]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2017
                name                                    "x_CO2_in_1"
                linkNode                                [2003 2016 2018]
                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                                      2018
                name                                    "x_H2O_liq_in_1"
                linkNode                                [2003 2017 2019]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2019
                name                                    "T_in_2"
                linkNode                                [2003 2018 2020]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2020
                name                                    "m_dot_air_in_2"
                linkNode                                [2003 2019 2021]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2021
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2003 2020 2022]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2022
                name                                    "x_CO2_in_2"
                linkNode                                [2003 2021 2023]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2023
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2003 2022 2024]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2024
                name                                    "Q_dot"
                linkNode                                [2003 2023 2025]
                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                                      2025
                name                                    "m_dot_H2O_gas"
                linkNode                                [2003 2024 2026]
                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                                      2026
                name                                    "m_dot_CO2"
                linkNode                                [2003 2025 2027]
                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                                      2027
                name                                    "m_dot_H2O_liq"
                linkNode                                [2003 2026 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              2028
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded_MATLAB_Function_1"
                machine         1
                chart           2003
        }

        chart {
                id                                                      2029
                name                                                    "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                windowPosition                                          [357.288 255.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2030 0 0]
                firstTransition                                         2032
                firstJunction                                           2031
                viewObj                                                 2029
                machine                                                 1
                subviewS {
                }
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2033
                chartFileNumber                                         94
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      2030
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2029
                treeNode                                [2029 0 0 0]
                superState                              SUBCHART
                subviewer                               2029
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      2031
                position                [23.5747 49.5747 7]
                chart                   2029
                linkNode                [2029 0 0]
                subviewer               2029
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2032
                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                      2031
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2029
                linkNode                [2029 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2029
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2033
                name                                    "T"
                linkNode                                [2029 0 2034]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2034
                name                                    "p"
                linkNode                                [2029 2033 2035]
                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                                      2035
                name                                    "rho"
                linkNode                                [2029 2034 2036]
                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                                      2036
                name                                    "m_air"
                linkNode                                [2029 2035 2037]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2037
                name                                    "m_H2O_gas"
                linkNode                                [2029 2036 2038]
                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                                      2038
                name                                    "m_CO2"
                linkNode                                [2029 2037 2039]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2039
                name                                    "m_H2O_liq"
                linkNode                                [2029 2038 2040]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2040
                name                                    "V"
                linkNode                                [2029 2039 2041]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2041
                name                                    "x_H2O_gas"
                linkNode                                [2029 2040 2042]
                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                                      2042
                name                                    "x_CO2"
                linkNode                                [2029 2041 2043]
                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                                      2043
                name                                    "x_H2O_liq"
                linkNode                                [2029 2042 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              2044
                name            "Duct_Heat_Transfer_Wall_5x_/Duct_Heat_Transfer_Wall_5/Vol_2D/Embe"
                                        "dded_MATLAB_Function_2"
                machine         1
                chart           2029
        }

        chart {
                id                                                      2045
                name                                                    "HR_Conv_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [435.36 162.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2046 0 0]
                firstTransition                                         2048
                firstJunction                                           2047
                viewObj                                                 2045
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2049
                chartFileNumber                                         96
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      2046
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2045
                treeNode                                [2045 0 0 0]
                superState                              SUBCHART
                subviewer                               2045
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [Q_dot_1,Q_dot_2] = Cal(A,alpha,T_1,T_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Heat Resistance\n"
                                                "% *\n"
                                                "% * Number of inputs:                                      "
                                                "      2\n"
                                                "% *\n"
                                                "% * Parameter: Surface:                                    "
                                                "      A\n"
                                                "% *            Convection heat transfer coefficient via sur"
                                                "face: alpha\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of HR\n"
                                                "% *\n"
                                                "% * Temperature:                                           "
                                                "      T_in\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of HR\n"
                                                "% *\n"
                                                "% * Heat flow:                                             "
                                                "      Q_dot\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Calculation heat flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 1. Heat Transfer process = convection    \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation heat flow\n"
                                                "Q_dot_1 = -alpha*A*(T_1-T_2);\n"
                                                "Q_dot_2 = -alpha*A*(T_2-T_1);\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[116 197 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                      2047
                position                [23.5747 49.5747 7]
                chart                   2045
                linkNode                [2045 0 0]
                subviewer               2045
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2048
                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                      2047
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2045
                linkNode                [2045 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               2045
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2049
                name                                    "A"
                linkNode                                [2045 0 2050]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2050
                name                                    "alpha"
                linkNode                                [2045 2049 2051]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2051
                name                                    "Q_dot_1"
                linkNode                                [2045 2050 2052]
                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                                      2052
                name                                    "Q_dot_2"
                linkNode                                [2045 2051 2053]
                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                                      2053
                name                                    "T_1"
                linkNode                                [2045 2052 2054]
                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                                      2054
                name                                    "T_2"
                linkNode                                [2045 2053 0]
                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
        }

        instance {
                id              2055
                name            "HR_Conv_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           2045
        }

        chart {
                id                                                      2056
                name                                                    "Duct_10x_/Vol_2D_10/Embedded_MATLAB_Function_1"
                windowPosition                                          [402.36 196.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2057 0 0]
                firstTransition                                         2059
                firstJunction                                           2058
                viewObj                                                 2056
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2060
                chartFileNumber                                         97
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      2057
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2056
                treeNode                                [2056 0 0 0]
                superState                              SUBCHART
                subviewer                               2056
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      2058
                position                [23.5747 49.5747 7]
                chart                   2056
                linkNode                [2056 0 0]
                subviewer               2056
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2059
                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                      2058
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2056
                linkNode                [2056 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2056
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2060
                name                                    "T"
                linkNode                                [2056 0 2061]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2061
                name                                    "T_dot"
                linkNode                                [2056 2060 2062]
                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                                      2062
                name                                    "m_dot_air"
                linkNode                                [2056 2061 2063]
                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                                      2063
                name                                    "m_air"
                linkNode                                [2056 2062 2064]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2064
                name                                    "m_H2O_gas"
                linkNode                                [2056 2063 2065]
                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                                      2065
                name                                    "m_CO2"
                linkNode                                [2056 2064 2066]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2066
                name                                    "m_H2O_liq"
                linkNode                                [2056 2065 2067]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2067
                name                                    "T_in_1"
                linkNode                                [2056 2066 2068]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2068
                name                                    "m_dot_air_in_1"
                linkNode                                [2056 2067 2069]
                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                                      2069
                name                                    "x_H2O_gas_in_1"
                linkNode                                [2056 2068 2070]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2070
                name                                    "x_CO2_in_1"
                linkNode                                [2056 2069 2071]
                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                                      2071
                name                                    "x_H2O_liq_in_1"
                linkNode                                [2056 2070 2072]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2072
                name                                    "T_in_2"
                linkNode                                [2056 2071 2073]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2073
                name                                    "m_dot_air_in_2"
                linkNode                                [2056 2072 2074]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2074
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2056 2073 2075]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2075
                name                                    "x_CO2_in_2"
                linkNode                                [2056 2074 2076]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2076
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2056 2075 2077]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2077
                name                                    "Q_dot"
                linkNode                                [2056 2076 2078]
                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                                      2078
                name                                    "m_dot_H2O_gas"
                linkNode                                [2056 2077 2079]
                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                                      2079
                name                                    "m_dot_CO2"
                linkNode                                [2056 2078 2080]
                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                                      2080
                name                                    "m_dot_H2O_liq"
                linkNode                                [2056 2079 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              2081
                name            "Duct_10x_/Vol_2D_10/Embedded_MATLAB_Function_1"
                machine         1
                chart           2056
        }

        chart {
                id                                                      2082
                name                                                    "Thermal_Capacity_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [435.36 162.375 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2083 0 0]
                firstTransition                                         2085
                firstJunction                                           2084
                viewObj                                                 2082
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2086
                chartFileNumber                                         98
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      2083
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2082
                treeNode                                [2082 0 0 0]
                superState                              SUBCHART
                subviewer                               2082
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function d_T  = Cal(m,c,Q_dot_in_1,Q_dot_in_2)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Thermal Capacity\n"
                                                "% *\n"
                                                "% * Number of inputs:                  2\n"
                                                "% *\n"
                                                "% * Parameter: Mass:                   m\n"
                                                "% *            Specific heat capacity: c\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of TC\n"
                                                "% *\n"
                                                "% * heat flow:                         Q_dot\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant output variables of TC\n"
                                                "% *\n"
                                                "% * Temperature:                       T\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "% * Embedded Matlab Function Cal:\n"
                                                "% * \n"
                                                "% * Calculations:\n"
                                                "% * 1. Modification of the temperature.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Modification of the temperature\n"
                                                "d_T = (Q_dot_1+Q_dot_2)/(m*c)\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[145 152 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                      2084
                position                [23.5747 49.5747 7]
                chart                   2082
                linkNode                [2082 0 0]
                subviewer               2082
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2085
                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                      2084
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2082
                linkNode                [2082 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               2082
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2086
                name                                    "m"
                linkNode                                [2082 0 2087]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2087
                name                                    "c"
                linkNode                                [2082 2086 2088]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2088
                name                                    "Q_dot_in_1"
                linkNode                                [2082 2087 2089]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2089
                name                                    "Q_dot_in_2"
                linkNode                                [2082 2088 2090]
                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                                      2090
                name                                    "d_T"
                linkNode                                [2082 2089 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              2091
                name            "Thermal_Capacity_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           2082
        }

        chart {
                id                                                      2092
                name                                                    "Vol_2D_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [345.45 228.75 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2093 0 0]
                firstTransition                                         2095
                firstJunction                                           2094
                viewObj                                                 2092
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2096
                chartFileNumber                                         99
                disableImplicitCasting                                  1
                eml {
                        name                    "Initial"
                }
        }

        state {
                id                                      2093
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2092
                treeNode                                [2092 0 0 0]
                superState                              SUBCHART
                subviewer                               2092
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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 33 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                      2094
                position                [23.5747 49.5747 7]
                chart                   2092
                linkNode                [2092 0 0]
                subviewer               2092
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2095
                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                      2094
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2092
                linkNode                [2092 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               2092
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2096
                name                                    "V"
                linkNode                                [2092 0 2097]
                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                                      2097
                name                                    "p_init"
                linkNode                                [2092 2096 2098]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2098
                name                                    "T_init"
                linkNode                                [2092 2097 2099]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2099
                name                                    "x_H2O_gas_init"
                linkNode                                [2092 2098 2100]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2100
                name                                    "x_CO2_init"
                linkNode                                [2092 2099 2101]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2101
                name                                    "x_H2O_liq_init"
                linkNode                                [2092 2100 2102]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2102
                name                                    "m_air_init"
                linkNode                                [2092 2101 2103]
                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                                      2103
                name                                    "m_H2O_gas_init"
                linkNode                                [2092 2102 2104]
                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                                      2104
                name                                    "m_CO2_init"
                linkNode                                [2092 2103 2105]
                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                                      2105
                name                                    "m_H2O_liq_init"
                linkNode                                [2092 2104 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              2106
                name            "Vol_2D_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           2092
        }

        chart {
                id                                                      2107
                name                                                    "Vol_2D_/Embedded_MATLAB_Function_1"
                windowPosition                                          [462.36 136.125 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2108 0 0]
                firstTransition                                         2110
                firstJunction                                           2109
                viewObj                                                 2107
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2111
                chartFileNumber                                         100
                disableImplicitCasting                                  1
                eml {
                        name                    "T_m"
                }
        }

        state {
                id                                      2108
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2107
                treeNode                                [2107 0 0 0]
                superState                              SUBCHART
                subviewer                               2107
                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 volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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[7 33 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                      2109
                position                [23.5747 49.5747 7]
                chart                   2107
                linkNode                [2107 0 0]
                subviewer               2107
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2110
                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                      2109
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2107
                linkNode                [2107 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2107
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2111
                name                                    "T"
                linkNode                                [2107 0 2112]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2112
                name                                    "T_dot"
                linkNode                                [2107 2111 2113]
                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                                      2113
                name                                    "m_dot_air"
                linkNode                                [2107 2112 2114]
                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                                      2114
                name                                    "m_air"
                linkNode                                [2107 2113 2115]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2115
                name                                    "m_H2O_gas"
                linkNode                                [2107 2114 2116]
                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                                      2116
                name                                    "m_CO2"
                linkNode                                [2107 2115 2117]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2117
                name                                    "m_H2O_liq"
                linkNode                                [2107 2116 2118]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2118
                name                                    "T_in_1"
                linkNode                                [2107 2117 2119]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2119
                name                                    "m_dot_air_in_1"
                linkNode                                [2107 2118 2120]
                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                                      2120
                name                                    "x_H2O_gas_in_1"
                linkNode                                [2107 2119 2121]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2121
                name                                    "x_CO2_in_1"
                linkNode                                [2107 2120 2122]
                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                                      2122
                name                                    "x_H2O_liq_in_1"
                linkNode                                [2107 2121 2123]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2123
                name                                    "T_in_2"
                linkNode                                [2107 2122 2124]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2124
                name                                    "m_dot_air_in_2"
                linkNode                                [2107 2123 2125]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2125
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2107 2124 2126]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2126
                name                                    "x_CO2_in_2"
                linkNode                                [2107 2125 2127]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2127
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2107 2126 2128]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2128
                name                                    "Q_dot"
                linkNode                                [2107 2127 2129]
                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                                      2129
                name                                    "m_dot_H2O_gas"
                linkNode                                [2107 2128 2130]
                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                                      2130
                name                                    "m_dot_CO2"
                linkNode                                [2107 2129 2131]
                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                                      2131
                name                                    "m_dot_H2O_liq"
                linkNode                                [2107 2130 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              2132
                name            "Vol_2D_/Embedded_MATLAB_Function_1"
                machine         1
                chart           2107
        }

        chart {
                id                                                      2133
                name                                                    "Vol_2D_/Embedded_MATLAB_Function_2"
                windowPosition                                          [402.288 210.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2134 0 0]
                firstTransition                                         2136
                firstJunction                                           2135
                viewObj                                                 2133
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2137
                chartFileNumber                                         101
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      2134
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2133
                treeNode                                [2133 0 0 0]
                superState                              SUBCHART
                subviewer                               2133
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 33 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                      2135
                position                [23.5747 49.5747 7]
                chart                   2133
                linkNode                [2133 0 0]
                subviewer               2133
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2136
                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                      2135
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2133
                linkNode                [2133 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2133
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2137
                name                                    "T"
                linkNode                                [2133 0 2138]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2138
                name                                    "p"
                linkNode                                [2133 2137 2139]
                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                                      2139
                name                                    "rho"
                linkNode                                [2133 2138 2140]
                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                                      2140
                name                                    "m_air"
                linkNode                                [2133 2139 2141]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2141
                name                                    "m_H2O_gas"
                linkNode                                [2133 2140 2142]
                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                                      2142
                name                                    "m_CO2"
                linkNode                                [2133 2141 2143]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2143
                name                                    "m_H2O_liq"
                linkNode                                [2133 2142 2144]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2144
                name                                    "V"
                linkNode                                [2133 2143 2145]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2145
                name                                    "x_H2O_gas"
                linkNode                                [2133 2144 2146]
                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                                      2146
                name                                    "x_CO2"
                linkNode                                [2133 2145 2147]
                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                                      2147
                name                                    "x_H2O_liq"
                linkNode                                [2133 2146 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              2148
                name            "Vol_2D_/Embedded_MATLAB_Function_2"
                machine         1
                chart           2133
        }

        chart {
                id                                                      2149
                name                                                    "Duct_10x_/Vol_2D_10/Embedded_MATLAB_Function_2"
                windowPosition                                          [342.288 270.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2150 0 0]
                firstTransition                                         2152
                firstJunction                                           2151
                viewObj                                                 2149
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2153
                chartFileNumber                                         102
                disableImplicitCasting                                  1
                eml {
                        name                    "p_rho"
                }
        }

        state {
                id                                      2150
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2149
                treeNode                                [2149 0 0 0]
                superState                              SUBCHART
                subviewer                               2149
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [p,rho,x_H2O_gas,x_CO2,x_H2O_liq] = p_rho(T,m_air,"
                                                "m_H2O_gas,m_CO2,m_H2O_liq,V)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a volume with 2 apertures\n"
                                                "% *\n"
                                                "% * Number of Inputs:        3\n"
                                                "% *\n"
                                                "% * Parameter : Volume:      V\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Vol_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_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. Definition specific gas constants.\n"
                                                "% * 2. Calculation of the density.\n"
                                                "% * 3. Calculation of the pressure.\n"
                                                "% * 4. Calculation of the water vapor content, CO2 content "
                                                "and \n"
                                                "% *    water content.\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. 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. 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 density\n"
                                                "rho       = (m_air+m_H2O_gas+m_CO2)/V;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. 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"
                                                "% * 4. 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"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[7 37 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                      2151
                position                [23.5747 49.5747 7]
                chart                   2149
                linkNode                [2149 0 0]
                subviewer               2149
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2152
                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                      2151
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2149
                linkNode                [2149 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2149
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2153
                name                                    "T"
                linkNode                                [2149 0 2154]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2154
                name                                    "p"
                linkNode                                [2149 2153 2155]
                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                                      2155
                name                                    "rho"
                linkNode                                [2149 2154 2156]
                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                                      2156
                name                                    "m_air"
                linkNode                                [2149 2155 2157]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2157
                name                                    "m_H2O_gas"
                linkNode                                [2149 2156 2158]
                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                                      2158
                name                                    "m_CO2"
                linkNode                                [2149 2157 2159]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2159
                name                                    "m_H2O_liq"
                linkNode                                [2149 2158 2160]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2160
                name                                    "V"
                linkNode                                [2149 2159 2161]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2161
                name                                    "x_H2O_gas"
                linkNode                                [2149 2160 2162]
                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                                      2162
                name                                    "x_CO2"
                linkNode                                [2149 2161 2163]
                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                                      2163
                name                                    "x_H2O_liq"
                linkNode                                [2149 2162 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              2164
                name            "Duct_10x_/Vol_2D_10/Embedded_MATLAB_Function_2"
                machine         1
                chart           2149
        }

        chart {
                id                                                      2165
                name                                                    "Valve_/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [495.288 120.094 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1280 1024 1.333333333333333]
                treeNode                                                [0 2166 0 0]
                firstTransition                                         2168
                firstJunction                                           2167
                viewObj                                                 2165
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2169
                chartFileNumber                                         103
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      2166
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2165
                treeNode                                [2165 0 0 0]
                superState                              SUBCHART
                subviewer                               2165
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2]=Cal(A,beta,zeta,p_in_1,rho_in_1,T_in_1,x_H2"
                                                "O_gas_in_1,x_CO2_in_1,x_H2O_liq_in_1,p_in_2,rho_in_2,T_in_2"
                                                ",x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2,Dir)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a Valve (incompressible)\n"
                                                "% *\n"
                                                "% * Number of inputs:                  2\n"
                                                "% *\n"
                                                "% * Parameter: Surface:                A\n"
                                                "% *            Opening factor :        OF\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *            Flow Direction:         Dir \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Valve\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 Valve\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. Calculation parameter.\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "% * 3. Calculation flow velocity.\n"
                                                "% * 4. Calculation mass flow.\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Assumptions: \n"
                                                "% * 2. State variables = input variables higher pressure\n"
                                                "% * 3. The overall pressure drop is transferred into kineti"
                                                "c energy.\n"
                                                "% * 4. 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 : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "A_eff          = sin(pi*beta/180)*A;\n"
                                                "\n"
                                                "if Dir == 0\n"
                                                "   if p_in_2 > p_in_1\n"
                                                "      A_eff    = 0;\n"
                                                "   end\n"
                                                "end\n"
                                                "if Dir == 1\n"
                                                "   if p_in_1 > p_in_2\n"
                                                "      A_eff    = 0;\n"
                                                "   end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho            = 0;\n"
                                                "T              = 0;\n"
                                                "x_H2O_gas      = 0;\n"
                                                "x_CO2          = 0;\n"
                                                "x_H2O_liq      = 0;\n"
                                                "\n"
                                                "if p_in_1 >= p_in_2\n"
                                                "   rho         = rho_in_1;\n"
                                                "   T           = T_in_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"
                                                "else\n"
                                                "   rho         = rho_in_2;\n"
                                                "   T           = T_in_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"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation flow velocity\n"
                                                "p_1            = p_in_2;\n"
                                                "p_2            = p_in_1;\n"
                                                "Delta_p        = p_in_1-p_in_2;\n"
                                                "rho_air        = rho/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "if abs(Delta_p) < 1\n"
                                                "   Delta_p     = 0;\n"
                                                "end\n"
                                                "\n"
                                                "zeta_total     = 1+zeta;\n"
                                                "v              = sqrt(abs(Delta_p)*(2/rho_air)*(1/zeta_tota"
                                                "l));\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation mass flow\n"
                                                "m_dot_air      = A_eff*rho_air*v;\n"
                                                "\n"
                                                "if Delta_p >= 0\n"
                                                "   m_dot_air_1 = -m_dot_air;\n"
                                                "   m_dot_air_2 =  m_dot_air;\n"
                                                "else\n"
                                                "   m_dot_air_1 =  m_dot_air;\n"
                                                "   m_dot_air_2 = -m_dot_air;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[167 100 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                      2167
                position                [23.5747 49.5747 7]
                chart                   2165
                linkNode                [2165 0 0]
                subviewer               2165
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2168
                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                      2167
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2165
                linkNode                [2165 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2165
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2169
                name                                    "rho"
                linkNode                                [2165 0 2170]
                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                                      2170
                name                                    "T"
                linkNode                                [2165 2169 2171]
                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                                      2171
                name                                    "x_H2O_gas"
                linkNode                                [2165 2170 2172]
                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                                      2172
                name                                    "x_CO2"
                linkNode                                [2165 2171 2173]
                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                                      2173
                name                                    "x_H2O_liq"
                linkNode                                [2165 2172 2174]
                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                                      2174
                name                                    "p_1"
                linkNode                                [2165 2173 2175]
                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                                      2175
                name                                    "m_dot_air_1"
                linkNode                                [2165 2174 2176]
                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                                      2176
                name                                    "p_2"
                linkNode                                [2165 2175 2177]
                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                                      2177
                name                                    "A"
                linkNode                                [2165 2176 2178]
                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                                      2178
                name                                    "beta"
                linkNode                                [2165 2177 2179]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2179
                name                                    "zeta"
                linkNode                                [2165 2178 2180]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2180
                name                                    "p_in_1"
                linkNode                                [2165 2179 2181]
                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                                      2181
                name                                    "rho_in_1"
                linkNode                                [2165 2180 2182]
                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                                      2182
                name                                    "T_in_1"
                linkNode                                [2165 2181 2183]
                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                                      2183
                name                                    "x_H2O_gas_in_1"
                linkNode                                [2165 2182 2184]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2184
                name                                    "x_CO2_in_1"
                linkNode                                [2165 2183 2185]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2185
                name                                    "x_H2O_liq_in_1"
                linkNode                                [2165 2184 2186]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2186
                name                                    "p_in_2"
                linkNode                                [2165 2185 2187]
                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                                      2187
                name                                    "rho_in_2"
                linkNode                                [2165 2186 2188]
                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                                      2188
                name                                    "T_in_2"
                linkNode                                [2165 2187 2189]
                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                                      2189
                name                                    "m_dot_air_2"
                linkNode                                [2165 2188 2190]
                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                                      2190
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2165 2189 2191]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2191
                name                                    "x_CO2_in_2"
                linkNode                                [2165 2190 2192]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2192
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2165 2191 2193]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2193
                name                                    "Dir"
                linkNode                                [2165 2192 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              2194
                name            "Valve_/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           2165
        }

        chart {
                id                                                      2195
                name                                                    "Duct_Heat_Transfer_Wall_/Embedded\n"
                                        "MATLAB Function"
                windowPosition                                          [483.45 147.9 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 2196 0 0]
                firstTransition                                         2198
                firstJunction                                           2197
                viewObj                                                 2195
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2199
                chartFileNumber                                         122
                disableImplicitCasting                                  1
                eml {
                        name                    "Volume"
                }
        }

        state {
                id                                      2196
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2195
                treeNode                                [2195 0 0 0]
                superState                              SUBCHART
                subviewer                               2195
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function V = Volume(L,D_major,D_minor)\n"
                                                "\n"
                                                "V = (pi/4)*D_major*D_minor*L;"
                        editorLayout                            "100 M4x1[146 214 671 364]"
                        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                      2197
                position                [23.5747 49.5747 7]
                chart                   2195
                linkNode                [2195 0 0]
                subviewer               2195
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2198
                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                      2197
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2195
                linkNode                [2195 0 0]
                dataLimits              [21.175 25.975 14.625 42.575]
                subviewer               2195
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2199
                name                                    "L"
                linkNode                                [2195 0 2200]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2200
                name                                    "D_major"
                linkNode                                [2195 2199 2201]
                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                                      2201
                name                                    "V"
                linkNode                                [2195 2200 2202]
                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                                      2202
                name                                    "D_minor"
                linkNode                                [2195 2201 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              2203
                name            "Duct_Heat_Transfer_Wall_/Embedded\n"
                                        "MATLAB Function"
                machine         1
                chart           2195
        }

        chart {
                id                                                      2204
                name                                                    "Duct_Heat_Transfer_Wall_/FR/Embedded\n"
                                        "MATLA Function"
                windowPosition                                          [582.23 58.383 200.25 189.75]
                viewLimits                                              [0 156.75 0 153.75]
                screen                                                  [1 1 1024 768 1.333333333333333]
                treeNode                                                [0 2205 0 0]
                firstTransition                                         2207
                firstJunction                                           2206
                viewObj                                                 2204
                machine                                                 1
                decomposition                                           CLUSTER_CHART
                type                                                    EML_CHART
                firstData                                               2208
                chartFileNumber                                         123
                disableImplicitCasting                                  1
                eml {
                        name                    "Cal"
                }
        }

        state {
                id                                      2205
                labelString                             "eML_blk_kernel()"
                position                                [18 64.5 118 66]
                fontSize                                12
                chart                                   2204
                treeNode                                [2204 0 0 0]
                superState                              SUBCHART
                subviewer                               2204
                type                                    FUNC_STATE
                decomposition                           CLUSTER_STATE
                eml {
                        isEML                                   1
                        script                                  "function [rho,T,x_H2O_gas,x_CO2,x_H2O_liq,p_1,m_dot_air_1,p"
                                                "_2,m_dot_air_2,Q_dot_fluid,T_dot_wall]=Cal(n_unit,D_major,D"
                                                "_minor,b_wall,b_isolation,rho_wall,rho_isolation,c_wall,c_i"
                                                "solation,lambda_wall,lambda_isolation,L,zeta,mode,p_in_1,rh"
                                                "o_in_1,T_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,x_H2O_gas_in_2,x_CO2_in_2,x_H2O_liq_in_2"
                                                ",T_wall,T_ambient)\n"
                                                "\n"
                                                "% *********************************************************"
                                                "****************\n"
                                                "% * Definition of a flow resistance with heat transfer via "
                                                "wall\n"
                                                "% *\n"
                                                "% * Number of inputs :                 2\n"
                                                "% *\n"
                                                "% * Parameter: Diameter:               D\n"
                                                "% *            Length:                 L\n"
                                                "% *            Minor loss coefficient: zeta \n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Relevant input variables of Duct_Heat_Transfer_Wall\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 Duct_Heat_Transfer_Wall\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. 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"
                                                "% * 6. Calculation heat transfer.\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"
                                                "% * 6. a) Heat transfer fluid/wall (convection)\n"
                                                "% *    b) Heat transfer wall/isolation (conduction)\n"
                                                "% *    c) Heat transfer isolation/enviroment (conduction)\n"
                                                "% *\n"
                                                "% *\n"
                                                "% * Last modification : 15.03.2008\n"
                                                "% * Author : Christian Müller(HAW)"
                                                ".de\n"
                                                "% *\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 1. Calculation parameter\n"
                                                "D_major              = abs(D_major);\n"
                                                "D_minor              = abs(D_minor);\n"
                                                "\n"
                                                "if D_major == D_minor\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   U_inner_duct      = pi*D_major;\n"
                                                "   U_outer_duct      = pi*(D_major+b_wall);\n"
                                                "   U_outer_isolation = pi*(D_major+b_wall+b_isolation);\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "else\n"
                                                "   A                 = (pi/4)*D_major*D_minor;\n"
                                                "   K                 = abs(D_major-D_minor)/(D_major+D_mino"
                                                "r);\n"
                                                "   U_inner_duct      = (D_major+D_minor)*pi*(1+(3*K^2)/(10+"
                                                "sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall)-(D_minor+b_wall"
                                                "))/((D_major+b_wall)+(D_minor+b_wall));\n"
                                                "   U_outer_duct      = ((D_major+b_wall)+(D_minor+b_wall))*"
                                                "pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   K                 = abs((D_major+b_wall+b_isolation)-(D_"
                                                "minor+b_wall+b_isolation))/((D_major+b_wall+b_isolation)+(D"
                                                "_minor+b_wall+b_isolation));\n"
                                                "   U_outer_isolation = ((D_major+b_wall+b_isolation)+(D_min"
                                                "or+b_wall+b_isolation))*pi*(1+(3*K^2)/(10+sqrt(4-3*K^2)));\n"
                                                "   D                 = U_inner_duct/pi;\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 2. Calculation of the state variables.\n"
                                                "rho                  = 0;\n"
                                                "T                    = 0;\n"
                                                "x_H2O_gas            = 0;\n"
                                                "x_CO2                = 0;\n"
                                                "x_H2O_liq            = 0;\n"
                                                "\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"
                                                "\n"
                                                "if mode == 1\n"
                                                "    \n"
                                                "   if p_in_1 >= p_in_2\n"
                                                "      rho            = rho_in_1;\n"
                                                "      T              = T_in_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"
                                                "   else\n"
                                                "      rho            = rho_in_2;\n"
                                                "      T              = T_in_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"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 3. Calculation average viscosity.\n"
                                                "eta_air              = 0.0000182;\n"
                                                "eta_H2O_gas          = 0.00000877;\n"
                                                "eta_CO2              = 0.0000149;\n"
                                                "eta                  = (eta_air+x_H2O_gas*eta_H2O_gas+x_CO2"
                                                "*eta_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "eta_kin              = eta/rho;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 4. Calculation flow velocity\n"
                                                "% * 4.1 Initial value of the flow velocity.\n"
                                                "p_1                  = p_in_2;\n"
                                                "p_2                  = p_in_1;\n"
                                                "Delta_p              = p_in_1-p_in_2;\n"
                                                "V_dot                = ((pi*(D/2)^4)*abs(Delta_p))/(8*eta*L"
                                                ");\n"
                                                "v                    = V_dot/A;\n"
                                                "Re                   = (v*D)/eta_kin;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "if Re < 1\n"
                                                "   Re                = 1;\n"
                                                "end\n"
                                                "\n"
                                                "check                = 1;\n"
                                                "\n"
                                                "while check > 0\n"
                                                "    \n"
                                                "      if Re<1187.384382\n"
                                                "         lambda      = 64/Re;\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "         \n"
                                                "         if Re < 1\n"
                                                "            Re       = 1;\n"
                                                "         end\n"
                                                "      else\n"
                                                "         lambda      = 0.3164*((Re)^(-0.25));\n"
                                                "         zeta_total  = lambda*(L/D)+zeta;\n"
                                                "         Z_v         = sqrt(abs(Delta_p)*(2/rho)*(1/zeta_to"
                                                "tal));\n"
                                                "         \n"
                                                "         if abs(v-Z_v) > (0.001*v)\n"
                                                "            check    = 1;\n"
                                                "         else\n"
                                                "            check    = 0;\n"
                                                "         end\n"
                                                "         \n"
                                                "         v           = Z_v;\n"
                                                "         Re          = (v*D)/eta_kin;\n"
                                                "      end\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 5. Calculation mass flow\n"
                                                "m_dot                = n_unit*A*rho*v;\n"
                                                "\n"
                                                "if Delta_p>=0\n"
                                                "   m_dot_air_1       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "else\n"
                                                "   m_dot_air_1       =  m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "   m_dot_air_2       = -m_dot*(1-((x_H2O_gas+x_CO2)/(1+x_H2"
                                                "O_gas+x_CO2)));\n"
                                                "end\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "% * 6. Calculation heat transfer\n"
                                                "c_p_air              = 1005;\n"
                                                "c_p_H2O_gas          = 1870;\n"
                                                "c_p_CO2              = 830;\n"
                                                "c_p                  = (c_p_air+x_H2O_gas*c_p_H2O_gas+x_CO2"
                                                "*c_p_CO2)/(1+x_H2O_gas+x_CO2);\n"
                                                "\n"
                                                "% * Thermal conductivity dry air\n"
                                                "lambda_air           = 0.00452+T*7.28282E-5;\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Pr                   = eta*c_p/lambda_air;\n"
                                                "if Re < 1187.384382\n"
                                                "   Nu                = ((3.66^3)+(1.66^3)*Re*Pr*(U_inner_du"
                                                "ct/(pi*L)))^(1/3);\n"
                                                "else\n"
                                                "   Nu                = 0.012*(Re^(0.87)-280)*Pr^(0.4)*(1+(U"
                                                "_inner_duct/(pi*L))^(2/3));\n"
                                                "end\n"
                                                "\n"
                                                "% * Convection heat transfer coefficient dry air\n"
                                                "alpha_air            = lambda_air*Nu/(U_inner_duct/pi);\n"
                                                "% *********************************************************"
                                                "***************\n"
                                                "\n"
                                                "Q_dot_fluid_wall     = alpha_air*(U_inner_duct*L)*(T-T_wall"
                                                ");\n"
                                                "Q_dot_wall_ambient   = 2*pi*L*(T_ambient-T_wall)/((log(U_ou"
                                                "ter_isolation/U_outer_duct)/lambda_isolation)+(log(U_outer_"
                                                "duct/U_inner_duct)/lambda_wall));\n"
                                                "Q_dot_wall           = Q_dot_fluid_wall+Q_dot_wall_ambient;"
                                                "\n"
                                                "V_wall               = L*U_inner_duct*b_wall;\n"
                                                "V_isolation          = L*U_outer_duct*b_isolation;\n"
                                                "T_dot_wall           = Q_dot_wall/(V_wall*rho_wall*c_wall+V"
                                                "_isolation*rho_isolation*c_isolation);\n"
                                                "Q_dot_fluid          = -Q_dot_fluid_wall ;\n"
                                                "% *********************************************************"
                                                "***************"
                        editorLayout                            "100 M4x1[4 172 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                      2206
                position                [23.5747 49.5747 7]
                chart                   2204
                linkNode                [2204 0 0]
                subviewer               2204
                type                    CONNECTIVE_JUNCTION
        }

        transition {
                id                      2207
                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                      2206
                        intersection            [7 0 -1 -1 23.5747 42.5747 0 0]
                }
                midPoint                [23.5747 24.9468]
                chart                   2204
                linkNode                [2204 0 0]
                dataLimits              [23.575 23.575 14.625 34.575]
                subviewer               2204
                drawStyle               SMART
                executionOrder          1
        }

        data {
                id                                      2208
                name                                    "n_unit"
                linkNode                                [2204 0 2209]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2209
                name                                    "rho"
                linkNode                                [2204 2208 2210]
                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                                      2210
                name                                    "T"
                linkNode                                [2204 2209 2211]
                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                                      2211
                name                                    "x_H2O_gas"
                linkNode                                [2204 2210 2212]
                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                                      2212
                name                                    "x_CO2"
                linkNode                                [2204 2211 2213]
                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                                      2213
                name                                    "x_H2O_liq"
                linkNode                                [2204 2212 2214]
                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                                      2214
                name                                    "p_1"
                linkNode                                [2204 2213 2215]
                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                                      2215
                name                                    "m_dot_air_1"
                linkNode                                [2204 2214 2216]
                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                                      2216
                name                                    "p_2"
                linkNode                                [2204 2215 2217]
                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                                      2217
                name                                    "D_major"
                linkNode                                [2204 2216 2218]
                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                                      2218
                name                                    "D_minor"
                linkNode                                [2204 2217 2219]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2219
                name                                    "b_wall"
                linkNode                                [2204 2218 2220]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2220
                name                                    "b_isolation"
                linkNode                                [2204 2219 2221]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2221
                name                                    "rho_wall"
                linkNode                                [2204 2220 2222]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2222
                name                                    "rho_isolation"
                linkNode                                [2204 2221 2223]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2223
                name                                    "c_wall"
                linkNode                                [2204 2222 2224]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2224
                name                                    "c_isolation"
                linkNode                                [2204 2223 2225]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2225
                name                                    "lambda_wall"
                linkNode                                [2204 2224 2226]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2226
                name                                    "lambda_isolation"
                linkNode                                [2204 2225 2227]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2227
                name                                    "L"
                linkNode                                [2204 2226 2228]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2228
                name                                    "zeta"
                linkNode                                [2204 2227 2229]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2229
                name                                    "mode"
                linkNode                                [2204 2228 2230]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2230
                name                                    "p_in_1"
                linkNode                                [2204 2229 2231]
                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                                      2231
                name                                    "rho_in_1"
                linkNode                                [2204 2230 2232]
                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                                      2232
                name                                    "T_in_1"
                linkNode                                [2204 2231 2233]
                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                                      2233
                name                                    "x_H2O_gas_in_1"
                linkNode                                [2204 2232 2234]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2234
                name                                    "x_CO2_in_1"
                linkNode                                [2204 2233 2235]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2235
                name                                    "x_H2O_liq_in_1"
                linkNode                                [2204 2234 2236]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2236
                name                                    "p_in_2"
                linkNode                                [2204 2235 2237]
                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                                      2237
                name                                    "rho_in_2"
                linkNode                                [2204 2236 2238]
                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                                      2238
                name                                    "T_in_2"
                linkNode                                [2204 2237 2239]
                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                                      2239
                name                                    "m_dot_air_2"
                linkNode                                [2204 2238 2240]
                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                                      2240
                name                                    "x_H2O_gas_in_2"
                linkNode                                [2204 2239 2241]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2241
                name                                    "x_CO2_in_2"
                linkNode                                [2204 2240 2242]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2242
                name                                    "x_H2O_liq_in_2"
                linkNode                                [2204 2241 2243]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2243
                name                                    "T_wall"
                linkNode                                [2204 2242 2244]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2244
                name                                    "T_ambient"
                linkNode                                [2204 2243 2245]
                scope                                   INPUT_DATA
                machine                                 1
                props {
                        array {
                                size                    "-1"
                        }
                        type {
                                method                  SF_INHERITED_TYPE
                                primitive               SF_DOUBLE_TYPE
                                isSigned                1
                                wordLength              "16"
                        }
                }
                dataType                                "inherited"
        }

        data {
                id                                      2245
                name                                    "Q_dot_fluid"
                linkNode                                [2204 2244 2246]
                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                                      2246
                name                                    "T_dot_wall"
                linkNode                                [2204 2245 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              2247
                name            "Duct_Heat_Transfer_Wall_/FR/Embedded\n"
                                        "MATLA Function"
                machine         1
                chart           2204
        }

        target {
                id                                      2248
                name                                    "sfun"
                description                             "Default Simulink S-Function Target."
                machine                                 1
                linkNode                                [1 0 0]
        }
}
