Ignore:
Timestamp:
Jul 15, 2009, 3:53:47 PM (13 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

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

    r784 r793  
    2020using "streams";
    2121
    22 Model reboiler
     22Model reboiler2
    2323        ATTRIBUTES
    2424        Pallete         = true;
     
    340340end
    341341
    342 Model reboiler_column
     342Model reboiler
    343343       
    344344ATTRIBUTES
    345         Pallete         = true;
    346         Icon            = "icon/reboiler_column";
     345        Pallete = true;
     346        Icon    = "icon/Reboiler";
    347347        Brief   = "Model of a dynamic reboiler - kettle with control.";
    348348        Info            =
    349 "== Assumptions ==
     349"== ASSUMPTIONS ==
    350350
    351351* perfect mixing of both phases;
     
    353353* no liquid entrainment in the vapour stream.
    354354       
    355 == Specify ==
    356 
    357 * the liquid inlet stream;
     355== SPECIFY ==
     356
     357* the InletLiquid stream;
    358358* the outlet flows: OutletVapour.F and OutletLiquid.F;
    359 * the model requires an energy stream.
    360        
    361 == Initial Conditions ==
     359* the InletQ (the model requires an energy stream, also you can use a controller for setting the heat duty using the heat_flow model).
     360
     361== OPTIONAL ==
     362* the reboiler model has three control ports
     363** TI OutletLiquid Temperature Indicator;
     364** PI OutletLiquid Pressure Indicator;
     365** LI Level Indicator of Reboiler;
     366
     367== INITIAL CONDITIONS ==
    362368
    363369* Initial_Temperature :  the reboiler temperature (OutletLiquid.T);
     
    367373       
    368374PARAMETERS
    369         outer PP                        as Plugin               (Brief = "External Physical Properties", Type="PP");
     375        outer PP                as Plugin       (Brief = "External Physical Properties", Type="PP");
    370376        outer NComp     as Integer      (Brief="Number of Components");
    371         Across                          as area                 (Brief="Cross Section Area of reboiler");
    372         V                                               as volume       (Brief="Total volume of reboiler");
    373        
    374         Initial_Level                                                           as length                               (Brief="Initial Level of liquid phase");
    375         Initial_Temperature                                     as temperature  (Brief="Initial Temperature of Reboiler");
    376         Initial_Composition(NComp)      as positive                     (Brief="Initial Liquid Composition",Lower=1E-6);
     377        Across                  as area         (Brief="Cross Section Area of reboiler");
     378        V                               as volume       (Brief="Total volume of reboiler");
     379       
     380        Initial_Level                           as length               (Brief="Initial Level of liquid phase");
     381        Initial_Temperature                     as temperature  (Brief="Initial Temperature of Reboiler");
     382        Initial_Composition(NComp)      as positive     (Brief="Initial Liquid Composition",Lower=1E-6);
    377383
    378384VARIABLES
    379385
    380 in      InletLiquid                     as stream                               (Brief="Liquid inlet stream", PosX=0, PosY=0.80, Symbol="_{inL}");
    381 out     OutletLiquid    as liquid_stream                (Brief="Liquid outlet stream", PosX=0.50, PosY=1, Symbol="_{outL}");
    382 out     OutletVapour    as vapour_stream        (Brief="Vapour outlet stream", PosX=0.50, PosY=0, Symbol="_{outV}");
    383 in      InletQ                  as power                                (Brief="Heat supplied", Protected = true, PosX=1, PosY=0.55, Symbol="_{in}");
    384 
    385         out     TCI as control_signal   (Brief="Temperature  Indicator of Reboiler", Protected = true, PosX=1, PosY=0.40);
    386         out     LCI as control_signal   (Brief="Level Indicator of Reboiler", Protected = true, PosX=1, PosY=0.25);
    387         out     PCI as control_signal   (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.10);
    388        
    389         M(NComp)        as mol                                  (Brief="Molar Holdup in the tray", Protected = true);
    390         ML                              as mol                                  (Brief="Molar liquid holdup", Protected = true);
    391         MV                              as mol                                  (Brief="Molar vapour holdup", Protected = true);
    392         E                                       as energy                       (Brief="Total Energy Holdup on tray", Protected = true);
    393         vL                              as volume_mol   (Brief="Liquid Molar Volume", Protected = true);
    394         vV                              as volume_mol   (Brief="Vapour Molar volume", Protected = true);
    395         rhoV                    as dens_mass            (Brief="Vapour Density", Protected = true);
    396         Level                   as length                               (Brief="Level of liquid phase", Protected = true);
    397         Pdrop                   as press_delta          (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true);
     386in      InletLiquid     as stream                       (Brief="Liquid inlet stream", PosX=0.17, PosY=1, Symbol="_{in}^{Liquid}");
     387out     OutletLiquid    as liquid_stream        (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}");
     388out     OutletVapour    as vapour_stream        (Brief="Vapour outlet stream", PosX=0.17, PosY=0, Symbol="_{out}^{Vapour}");
     389in      InletQ                  as power                        (Brief="Heat supplied", Protected = true, PosX=1, PosY=0.08, Symbol="Q_{in}");
     390
     391        out     TI as control_signal    (Brief="Temperature  Indicator of Reboiler", Protected = true, PosX=0.44, PosY=0);
     392        out     LI as control_signal    (Brief="Level Indicator of Reboiler", Protected = true, PosX=0.53, PosY=0);
     393        out     PI as control_signal    (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=0.35, PosY=0);
     394       
     395        M(NComp)        as mol                  (Brief="Molar Holdup in the tray", Protected = true);
     396        ML                      as mol                  (Brief="Molar liquid holdup", Protected = true);
     397        MV                      as mol                  (Brief="Molar vapour holdup", Protected = true);
     398        E                       as energy               (Brief="Total Energy Holdup on tray", Protected = true);
     399        vL                      as volume_mol   (Brief="Liquid Molar Volume", Protected = true);
     400        vV                      as volume_mol   (Brief="Vapour Molar volume", Protected = true);
     401        rhoV            as dens_mass    (Brief="Vapour Density", Protected = true, Symbol="\rho");
     402        Level           as length               (Brief="Level of liquid phase", Protected = true);
     403        Pdrop           as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true);
    398404
    399405INITIAL
    400406
    401         Level                                                                           = Initial_Level;
    402         OutletLiquid.T                                                  = Initial_Temperature;
    403         OutletLiquid.z(1:NComp-1)       = Initial_Composition(1:NComp-1)/sum(Initial_Composition);
     407"Initial Level"
     408        Level   = Initial_Level;
     409
     410"Initial Temperature"
     411        OutletLiquid.T  = Initial_Temperature;
     412
     413"Initial Composition"
     414        OutletLiquid.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition);
    404415
    405416EQUATIONS
     417
    406418"Component Molar Balance"
    407419        diff(M)= InletLiquid.F*InletLiquid.z    - OutletLiquid.F*OutletLiquid.z - OutletVapour.F*OutletVapour.z;
     
    450462
    451463"Temperature Indicator"
    452         TCI * 'K' = OutletLiquid.T;
     464        TI * 'K' = OutletLiquid.T;
    453465
    454466"Pressure Indicator"
    455         PCI * 'atm' = OutletLiquid.P;
     467        PI * 'atm' = OutletLiquid.P;
    456468
    457469"Level indicator"
    458         LCI*V = Level*Across;
     470        LI*V = Level*Across;
    459471
    460472end
Note: See TracChangeset for help on using the changeset viewer.