Changeset 767 for branches


Ignore:
Timestamp:
Jun 16, 2009, 4:50:33 PM (14 years ago)
Author:
gerson bicca
Message:

added control ports for pressure control

Location:
branches/gui/eml/stage_separators
Files:
2 edited

Legend:

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

    r757 r767  
    283283* the inlet stream;
    284284* the outlet flows: OutletVapour.F and OutletLiquid.F;
    285 * the heat supply.
     285* the model requires an energy stream.
    286286       
    287287== Initial Conditions ==
     
    300300        Initial_Level                                                           as length                               (Brief="Initial Level of liquid phase");
    301301        Initial_Temperature                                     as temperature  (Brief="Initial Temperature of Condenser");
    302         Initial_Composition(NComp)      as fraction                     (Brief="Initial Liquid Composition");
     302        Initial_Composition(NComp)      as positive                     (Brief="Initial Liquid Composition", Lower=1E-6);
    303303       
    304304VARIABLES
     
    311311        out     TCI as control_signal   (Brief="Temperature  Indicator of Condenser", Protected = true, PosX=1, PosY=0.40);
    312312        out     LCI as control_signal   (Brief="Level  Indicator of Condenser", Protected = true, PosX=1, PosY=0.25);
     313        out     PCI as control_signal   (Brief="Pressure  Indicator of Condenser", Protected = true, PosX=1, PosY=0.10);
    313314
    314315        M(NComp)        as mol                                  (Brief="Molar Holdup in the tray");
     
    346347"Mol fraction normalisation"
    347348        sum(OutletLiquid.z)=1.0;
     349
     350"Mol fraction Constraint"
    348351        sum(OutletLiquid.z)=sum(OutletVapour.z);
    349352
     
    373376        TCI * 'K' = OutletLiquid.T;
    374377
     378"Pressure indicator"
     379        PCI * 'atm' = OutletLiquid.P;
     380
    375381"Level indicator"
    376382        LCI*V = Level*Across;
  • branches/gui/eml/stage_separators/reboiler.mso

    r764 r767  
    340340Model reboiler_column
    341341       
    342         ATTRIBUTES
     342ATTRIBUTES
    343343        Pallete         = true;
    344344        Icon            = "icon/reboiler_column";
    345         Brief           = "Model of a dynamic reboiler - kettle with control.";
     345        Brief   = "Model of a dynamic reboiler - kettle with control.";
    346346        Info            =
    347347"== Assumptions ==
     
    353353== Specify ==
    354354
    355 * the inlet stream;
    356355* the liquid inlet stream;
    357356* the outlet flows: OutletVapour.F and OutletLiquid.F;
    358 * the heat supply.
     357* the model requires an energy stream.
    359358       
    360359== Initial Conditions ==
     
    373372        Initial_Level                                                           as length                               (Brief="Initial Level of liquid phase");
    374373        Initial_Temperature                                     as temperature  (Brief="Initial Temperature of Reboiler");
    375         Initial_Composition(NComp)      as fraction                     (Brief="Initial Liquid Composition");
     374        Initial_Composition(NComp)      as positive                     (Brief="Initial Liquid Composition",Lower=1E-6);
    376375
    377376VARIABLES
     
    384383        out     TCI as control_signal   (Brief="Temperature  Indicator of Reboiler", Protected = true, PosX=1, PosY=0.40);
    385384        out     LCI as control_signal   (Brief="Level Indicator of Reboiler", Protected = true, PosX=1, PosY=0.25);
     385        out     PCI as control_signal   (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.10);
    386386       
    387387        M(NComp)        as mol                                  (Brief="Molar Holdup in the tray");
     
    391391        vL                              as volume_mol   (Brief="Liquid Molar Volume");
    392392        vV                              as volume_mol   (Brief="Vapour Molar volume");
     393        rhoV                    as dens_mass            (Brief="Vapour Density");
    393394        Level                   as length                               (Brief="Level of liquid phase");
    394         rhoV                    as dens_mass            (Brief="Vapour Density");
    395395
    396396INITIAL
     
    413413        E = ML*OutletLiquid.h + MV*OutletVapour.h - OutletLiquid.P*V;
    414414
    415 "Mol fraction normalisation"
     415"Mol Fraction Normalisation"
    416416        sum(OutletLiquid.z)=1.0;
     417
     418"Mol fraction Constraint"
    417419        sum(OutletLiquid.z)=sum(OutletVapour.z);
    418420
     
    441443        Level = ML*vL/Across;
    442444
    443 "Temperature indicator"
     445"Temperature Indicator"
    444446        TCI * 'K' = OutletLiquid.T;
     447
     448"Pressure Indicator"
     449        PCI * 'atm' = OutletLiquid.P;
    445450
    446451"Level indicator"
Note: See TracChangeset for help on using the changeset viewer.