Ignore:
Timestamp:
Aug 4, 2009, 12:12:36 PM (14 years ago)
Author:
gerson bicca
Message:

updated column model

File:
1 edited

Legend:

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

    r808 r809  
    817817        CONTROL                 as ControlSection (Brief = "Control");
    818818       
    819         out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.63);
     819        out     TCI as control_signal   (Brief="Temperature  Indicator", Protected = true, PosX=1, PosY=0.55);
    820820        out     PCI as control_signal   (Brief="Pressure Indicator", Protected = true, PosX=0, PosY=0.23);
    821821       
     
    11691169
    11701170        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);
     1171        out     PI_reb  as control_signal       (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.875);
    11721172       
    11731173        out     TI_cond         as control_signal       (Brief="Temperature Indicator of Condenser ", Protected = true, PosX=0.52, PosY=0);
    11741174        out     PI_cond         as control_signal       (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.42, PosY=0);
    11751175       
    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);
     1176        out     TI_drum as control_signal       (Brief="Temperature Indicator of Reflux Drum ", Protected = true, PosX=1, PosY=0.20);
     1177        out     PI_drum as control_signal       (Brief="Pressure Indicator of Reflux Drum", Protected = true, PosX=1, PosY=0.155);
    11781178        out     LI_drum as control_signal       (Brief="Level Indicator of Reflux Drum", Protected = true, PosX=1, PosY=0.24);
    11791179       
    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 
    1183 out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.32);
    1184 out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Bottom Splitter", PosX=0.05, PosY=1);
    1185 
    1186 in      ConnectorSplitterBottom         as stream       (Brief="Connector for Liquid outlet stream From Reboiler", Hidden=true);
    1187 in      ConnectorSplitterTop            as stream       (Brief="Connector for Liquid outlet stream From Top Splitter", Hidden=true);
     1180        out     LI_sump as control_signal       (Brief="Level Indicator of Column Sump", Protected = true, PosX=1, PosY=0.765);
     1181        out     TI_sump as control_signal       (Brief="Temperature Indicator of Column Sump ",Protected = true, PosX=1, PosY=0.71);
     1182       
     1183        out     LiquidDistillate        as liquid_stream        (Brief="Liquid outlet stream From Top Splitter", PosX=1, PosY=0.33);
     1184        out     BottomProduct           as liquid_stream        (Brief="Liquid outlet stream From Bottom Splitter", PosX=0.06, PosY=1);
     1185
     1186        in      ConnectorSplitterBottom         as stream       (Brief="Connector for Liquid outlet stream From Reboiler", Hidden=true);
     1187        in      ConnectorSplitterTop            as stream       (Brief="Connector for Liquid outlet stream From Top Splitter", Hidden=true);
    11881188
    11891189        ConnectorHeatReboiler           as power        (Brief="Connector for Heat supplied to Reboiler", Hidden=true);
    11901190        ConnectorHeatCondenser          as power        (Brief="Connector for Heat supplied to Condenser", Hidden=true);
    11911191        ConnectorHeatRefluxDrum         as power        (Brief="Connector for Heat supplied to Reflux Drum", Hidden=true);
    1192        
     1192
    11931193EQUATIONS
     1194
     1195        TI_reb  = REBOILER.TI ;
     1196        PI_reb  = REBOILER.PI;
     1197       
     1198        TI_cond = CONDENSER.TI;
     1199        PI_cond = CONDENSER.PI;
     1200       
     1201        TI_drum = REFLUX_DRUM.TI;
     1202        PI_drum = REFLUX_DRUM.PI;
     1203        LI_drum = REFLUX_DRUM.LI;
     1204       
     1205        TI_sump = SUMP.TI;
     1206        LI_sump = SUMP.LI;
     1207       
     1208for i in 1:NumberOfTrays do
     1209
     1210if i equal FeedTrayLocation(1) then   
     1211
     1212"FeedTrayTop Inlet Flow"       
     1213        FeedTray.F= TRAYS(i).Inlet.F;
     1214
     1215"FeedTrayTop Inlet Temperature"
     1216        FeedTray.T = TRAYS(i).Inlet.T;
     1217
     1218"FeedTrayTop Inlet Pressure"
     1219        FeedTray.P = TRAYS(i).Inlet.P;
     1220
     1221"FeedTrayTop Inlet Composition"
     1222        FeedTray.z = TRAYS(i).Inlet.z;
     1223
     1224"FeedTrayTop Inlet Vapour Fraction"
     1225        FeedTray.v = TRAYS(i).Inlet.v;
     1226
     1227"FeedTrayTop Inlet Enthalpy"
     1228        FeedTray.h = TRAYS(i).Inlet.h;
     1229
     1230else
     1231
     1232"Inlet Tray - Flow Sealed"     
     1233        0*'mol/h'= TRAYS(i).Inlet.F;
     1234
     1235"Inlet Tray -  Temperature"
     1236        FeedTray.T = TRAYS(i).Inlet.T;
     1237
     1238"Inlet Tray -  Pressure"
     1239        FeedTray.P = TRAYS(i).Inlet.P;
     1240
     1241"Inlet Tray -  Composition"
     1242        FeedTray.z = TRAYS(i).Inlet.z;
     1243
     1244"Inlet Tray -  Vapour Fraction"
     1245        FeedTray.v = TRAYS(i).Inlet.v;
     1246
     1247"Inlet Tray -  Enthalpy"
     1248        FeedTray.h = TRAYS(i).Inlet.h;
     1249
     1250end
     1251
     1252end
    11941253
    11951254# Heat Connector Equations
     
    12091268        ConnectorSplitterBottom.F = BottomProduct.F;
    12101269        ConnectorSplitterBottom.z = BottomProduct.z;
    1211 
     1270       
    12121271CONNECTIONS
    12131272#vapor
Note: See TracChangeset for help on using the changeset viewer.