Ignore:
Timestamp:
Aug 3, 2009, 6:15:55 PM (13 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/stage_separators/column.mso

    r806 r808  
    11191119end
    11201120
    1121 #*
    1122 Model Distillation_thermosyphon_subcooling      as Section_ColumnBasicX
     1121Model Distillation_thermosyphon_subcooling      as ColumnBasic
    11231122        ATTRIBUTES
    11241123        Pallete         = true;
     
    11501149";
    11511150
    1152 PARAMETERS
    1153 
    1154         CondenserVapourFlow as Switcher(Valid = ["on", "off"], Hidden=true, Default = "on");
     1151SET
     1152
     1153        NumberOfFeeds = 1;
    11551154
    11561155VARIABLES
    1157 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1158 # Column Vapour and Liquid Draw Sides
    1159 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1160         out     VapourDrawOff   as vapour_stream                (Brief="Vapour Outlet in the section", PosX=1, PosY=0.41,Protected = true);
    1161         out     LiquidDrawOff   as liquid_stream                (Brief="Liquid Outlet in the section", PosX=1, PosY=0.45,Protected = true);
    1162 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1163 # Column Devices
    1164 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    11651156        CONDENSER                       as condenserSteady      (Brief="steady state condenser with subcooling");
    1166         ACCUMULATOR_TOP         as tank_cylindrical     (Brief="vessel drum (layed cilinder)");
    1167         SPLITTER_TOP            as splitter2                    (Brief="splitter which separate reflux and distillate");
     1157        REFLUX_DRUM             as TankL                        (Brief="Reflux Drum");
     1158        SPLITTER_TOP            as splitter2            (Brief="splitter which separate reflux and distillate");
    11681159        PUMP                            as pump                         (Brief="pump in reflux stream");
    11691160        REBOILER                        as reboilerSteady       (Brief="steady state reboiler (thermosyphon)");
    1170         ACCUMULATOR_BOTTOM      as tank                         (Brief="vessel in the bottom of column");
    1171         SPLITTER_BOTTOM         as splitter2                    (Brief="splitter who separate the bottom product and the stream to reboiler");
    1172         alfaTopo                        as Real;
    1173 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1174 # Heat Ports
    1175 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1176 in              HeatToCondenser                 as power        (Brief="Heat supplied to Condenser",PosX=1, PosY=0.099, Protected=true);
    1177 in              HeatToReboiler                  as power        (Brief="Heat supplied to Reboiler", PosX=1, PosY=0.92,Protected=true);
    1178 in              HeatToBottomAccumulator as power        (Brief="Heat supplied to Bottom Accumulator",PosX=0, PosY=0.925,Protected=true);
    1179 in              HeatToTopAccumulator    as power        (Brief="Heat supplied to Top Accumulator", PosX=1, PosY=0.19,Protected=true);
    1180 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1181 # Column Control Ports
    1182 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1183         out     TRI as control_signal   (Brief="Temperature Indicator of Reboiler ", PosX=1, PosY=0.88);
    1184         out     LTAI as control_signal  (Brief="Level Indicator of Top Accumulator ", PosX=1, PosY=0.15);
    1185         out     TCI as control_signal   (Brief="Temperature Indicator of Condenser ", PosX=1, PosY=0.059);
    1186         out     LBAI as control_signal  (Brief="Level Indicator of Bottom Accumulator", PosX=1, PosY=0.77);
    1187 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1188 # Column Top and Bottom product
    1189 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1190 out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.24);
    1191 out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Bottom Splitter", PosX=0.18, PosY=1);
    1192 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1193 # Column Model Connectors
    1194 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     1161        SUMP                            as SumpTank                     (Brief="vessel in the bottom of column");
     1162        SPLITTER_BOTTOM         as splitter2            (Brief="splitter to separate the bottom product and the stream to reboiler");
     1163       
     1164        in      FeedTray        as stream               (Brief="Feed stream", PosX=0, PosY=0.55);
     1165
     1166in              Q_cond          as power        (Brief="Heat supplied to Condenser",PosX=1, PosY=0, Protected=true);
     1167in              Q_reb           as power        (Brief="Heat supplied to Reboiler", PosX=1, PosY=0.96,Protected=true);
     1168in              Q_drum  as power        (Brief="Heat supplied to Reflux Drum", PosX=1, PosY=0.30,Protected=true);
     1169
     1170        out     TI_reb  as control_signal       (Brief="Temperature Indicator of Reboiler ",Protected = true, PosX=1, PosY=0.92);
     1171        out     PI_reb  as control_signal       (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.85);
     1172       
     1173        out     TI_cond         as control_signal       (Brief="Temperature Indicator of Condenser ", Protected = true, PosX=0.52, PosY=0);
     1174        out     PI_cond         as control_signal       (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.42, PosY=0);
     1175       
     1176        out     TI_drum as control_signal       (Brief="Temperature Indicator of Reflux Drum ", Protected = true, PosX=1, PosY=0.18);
     1177        out     PI_drum as control_signal       (Brief="Pressure Indicator of Reflux Drum", Protected = true, PosX=1, PosY=0.17);
     1178        out     LI_drum as control_signal       (Brief="Level Indicator of Reflux Drum", Protected = true, PosX=1, PosY=0.24);
     1179       
     1180        out     LI_sump as control_signal       (Brief="Level Indicator of Column Sump", Protected = true, PosX=1, PosY=0.70);
     1181        out     TI_sump as control_signal       (Brief="Temperature Indicator of Column Sump ",Protected = true, PosX=1, PosY=0.75);
     1182
     1183out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.32);
     1184out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Bottom Splitter", PosX=0.05, PosY=1);
     1185
    11951186in      ConnectorSplitterBottom         as stream       (Brief="Connector for Liquid outlet stream From Reboiler", Hidden=true);
    11961187in      ConnectorSplitterTop            as stream       (Brief="Connector for Liquid outlet stream From Top Splitter", Hidden=true);
    11971188
    1198         ConnectorHeatReboiler                   as power        (Brief="Connector for Heat supplied to Reboiler", Hidden=true);
    1199         ConnectorHeatCondenser                  as power        (Brief="Connector for Heat supplied to Condenser", Hidden=true);
    1200         ConnectorHeatTopAccumulator     as power        (Brief="Connector for Heat supplied to Top Accumulator", Hidden=true);
    1201         ConnectorHeatBottomAccumulator  as power        (Brief="Connector for Heat supplied to Bottom Accumulator", Hidden=true);
     1189        ConnectorHeatReboiler           as power        (Brief="Connector for Heat supplied to Reboiler", Hidden=true);
     1190        ConnectorHeatCondenser          as power        (Brief="Connector for Heat supplied to Condenser", Hidden=true);
     1191        ConnectorHeatRefluxDrum         as power        (Brief="Connector for Heat supplied to Reflux Drum", Hidden=true);
    12021192       
    12031193EQUATIONS
    12041194
    1205 "Reboiler Temperature indicator"
    1206         TRI * 'K' = REBOILER.OutletVapour.T;
    1207 
    1208 "Condenser Temperature indicator"
    1209         TCI * 'K' = CONDENSER.OutletLiquid.T;
    1210 
    1211 "Top Accumulator Level indicator"
    1212         LTAI*ACCUMULATOR_TOP.Vtotal = ACCUMULATOR_TOP.Vfilled;
    1213 
    1214 "Bottom Accumulator Level indicator"
    1215         LBAI*ACCUMULATOR_BOTTOM.Vtotal = ACCUMULATOR_BOTTOM.Vfilled;
    1216        
    12171195# Heat Connector Equations
    1218         HeatToCondenser                 =       ConnectorHeatCondenser;
    1219         HeatToReboiler                  =       ConnectorHeatReboiler;
    1220         HeatToBottomAccumulator =       ConnectorHeatBottomAccumulator;
    1221         HeatToTopAccumulator    =       ConnectorHeatTopAccumulator;
     1196        Q_cond  =       ConnectorHeatCondenser;
     1197        Q_reb   =       ConnectorHeatReboiler;
     1198        Q_drum  =       ConnectorHeatRefluxDrum;
    12221199
    12231200# Top Splitter Connector Equations
     
    12331210        ConnectorSplitterBottom.z = BottomProduct.z;
    12341211
    1235         VapourDrawOff.F*VapSideTrayIndex= TRAYS.VapourSideStream.F;
    1236         VapourDrawOff.T = TRAYS(VapourSideStreamLocation).VapourSideStream.T;
    1237         VapourDrawOff.P = TRAYS(VapourSideStreamLocation).VapourSideStream.P;
    1238         VapourDrawOff.z = TRAYS(VapourSideStreamLocation).VapourSideStream.z;
    1239 
    1240         LiquidDrawOff.F*LiqSideTrayIndex= TRAYS.LiquidSideStream.F;
    1241         LiquidDrawOff.T = TRAYS(LiquidSideStreamLocation).LiquidSideStream.T;
    1242         LiquidDrawOff.P = TRAYS(LiquidSideStreamLocation).LiquidSideStream.P;
    1243         LiquidDrawOff.z = TRAYS(LiquidSideStreamLocation).LiquidSideStream.z;
    1244 
    1245         VapourDrawOffFlow = VapourDrawOff.F;
    1246         LiquidDrawOffFlow = LiquidDrawOff.F;
    1247 
    1248 switch CondenserVapourFlow
    1249 
    1250         case "on":
    1251                 CONDENSER.InletVapour.F*TRAYS(1).vV = alfaTopo * Ah * sqrt(2*(TRAYS(1).OutletVapour.P -
    1252                 CONDENSER.OutletLiquid.P + 1e-8 * 'atm') / (alfa*TRAYS(1).rhoV));
    1253                 when CONDENSER.InletVapour.F < 1e-6 * 'kmol/h' switchto "off";
    1254 
    1255         case "off":
    1256                 CONDENSER.InletVapour.F = 0 * 'mol/s';
    1257                 when TRAYS(1).OutletVapour.P > CONDENSER.OutletLiquid.P + 1e-1 * 'atm' switchto "on";
    1258 
    1259 end     
    1260 
    12611212CONNECTIONS
    12621213#vapor
    1263         REBOILER.OutletVapour   to TRAYS(NumberOfTrays).InletVapour;
     1214        REBOILER.OutletVapour   to SUMP.InletVapour;
     1215        SUMP.OutletVapour               to TRAYS(NumberOfTrays).InletVapour;
    12641216        TRAYS(1).OutletVapour   to CONDENSER.InletVapour;
    12651217
    12661218#liquid
    1267         CONDENSER.OutletLiquid                          to ACCUMULATOR_TOP.Inlet;       
    1268         ACCUMULATOR_TOP.Outlet                  to SPLITTER_TOP.Inlet;
     1219        CONDENSER.OutletLiquid                          to REFLUX_DRUM.Inlet;   
     1220        REFLUX_DRUM.OutletLiquid                        to SPLITTER_TOP.Inlet;
    12691221        SPLITTER_TOP.Outlet2                    to PUMP.Inlet; 
    12701222        PUMP.Outlet                                     to TRAYS(1).InletLiquid;
    1271         TRAYS(NumberOfTrays).OutletLiquid       to ACCUMULATOR_BOTTOM.Inlet;
    1272         ACCUMULATOR_BOTTOM.Outlet               to SPLITTER_BOTTOM.Inlet;
     1223        TRAYS(NumberOfTrays).OutletLiquid       to SUMP.InletLiquid;
     1224        SUMP.OutletLiquid               to SPLITTER_BOTTOM.Inlet;
    12731225        SPLITTER_BOTTOM.Outlet2                 to REBOILER.InletLiquid;
    12741226
     
    12761228        ConnectorHeatCondenser                  to CONDENSER.InletQ;
    12771229        ConnectorHeatReboiler                   to REBOILER.InletQ;
    1278         ConnectorHeatBottomAccumulator  to ACCUMULATOR_BOTTOM.InletQ;
    1279         ConnectorHeatTopAccumulator             to ACCUMULATOR_TOP.InletQ;
     1230        ConnectorHeatRefluxDrum                 to REFLUX_DRUM.InletQ;
    12801231        SPLITTER_TOP.Outlet1                    to ConnectorSplitterTop;
    12811232        SPLITTER_BOTTOM.Outlet1                 to ConnectorSplitterBottom;
     
    12831234end
    12841235
     1236#*
    12851237Model Distillation_thermosyphon_cond as Section_ColumnBasicX
    12861238        ATTRIBUTES
Note: See TracChangeset for help on using the changeset viewer.