Ignore:
Timestamp:
Jul 3, 2009, 6:29:17 PM (14 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

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

    r768 r784  
    2424        Pallete         = true;
    2525        Icon            = "icon/Condenser";
    26         Brief           = "Model of a dynamic condenser.";
     26        Brief   = "Model of a dynamic condenser.";
    2727        Info            =
    2828"== Assumptions ==
     
    3333* the inlet stream;
    3434* the outlet flows: OutletVapour.F and OutletLiquid.F;
    35 * the heat supply.
     35* the InletQ (the model requires an energy stream).
    3636       
    3737== Initial Conditions ==
    38 * the condenser temperature (OutletLiquid.T);
    39 * the condenser liquid level (Level);
    40 * (NoComps - 1) OutletLiquid (OR OutletVapour) compositions.
     38* Initial_Temperature :  the condenser temperature (OutletLiquid.T);
     39* Initial_Level : the condenser liquid level (Level);
     40* Initial_Composition : (NoComps) OutletLiquid compositions.
    4141";     
    4242       
    4343PARAMETERS
    4444        outer PP                        as Plugin       (Brief = "External Physical Properties", Type="PP");
    45         outer NComp     as Integer;
     45        outer NComp     as Integer(Brief = "Number of Components");
    4646
    4747        V                       as volume       (Brief="Condenser total volume");
    48         Across  as area                         (Brief="Cross Section Area of reboiler");
     48        Across  as area                         (Brief="Cross Section Area of condenser");
    4949       
    5050        Initial_Level                           as length                       (Brief="Initial Level of liquid phase");
     
    5656out     OutletLiquid    as liquid_stream                (Brief="Liquid outlet stream", PosX=0.4513, PosY=1, Symbol="_{outL}");
    5757out     OutletVapour    as vapour_stream        (Brief="Vapour outlet stream", PosX=0.4723, PosY=0, Symbol="_{outV}");
    58 in              InletQ          as power                                (Brief="Cold supplied", PosX=1, PosY=0, Symbol="_{in}");
    59 
    60         M(NComp)        as mol                          (Brief="Molar Holdup in the tray");
    61         ML                              as mol                          (Brief="Molar liquid holdup");
    62         MV                              as mol                          (Brief="Molar vapour holdup");
    63         E                                       as energy                       (Brief="Total Energy Holdup on tray");
    64         vL                              as volume_mol   (Brief="Liquid Molar Volume");
    65         vV                              as volume_mol   (Brief="Vapour Molar volume");
    66         Level                   as length                       (Brief="Level of liquid phase");
     58in              InletQ          as power                                (Brief="Cold supplied", PosX=1, PosY=0, Symbol="_{in}",Protected=true);
     59
     60        M(NComp)        as mol                          (Brief="Condenser Total Molar Holdup",Protected=true);
     61        ML                              as mol                          (Brief="Molar liquid holdup",Protected=true);
     62        MV                              as mol                          (Brief="Molar vapour holdup",Protected=true);
     63        E                                       as energy                       (Brief="Total Energy Holdup",Protected=true);
     64        vL                              as volume_mol   (Brief="Liquid Molar Volume",Protected=true);
     65        vV                              as volume_mol   (Brief="Vapour Molar volume",Protected=true);
     66        Level                   as length                       (Brief="Level of liquid phase",Protected=true);
    6767
    6868INITIAL
     
    8585        E = ML*OutletLiquid.h + MV*OutletVapour.h - OutletVapour.P*V;
    8686       
    87 "Mol fraction normalisation"
     87"Liquid Mol fraction normalisation"
    8888        sum(OutletLiquid.z)=1.0;
     89
     90"Mol fraction constraint"
    8991        sum(OutletLiquid.z)=sum(OutletVapour.z);
    9092
     
    113115end
    114116
    115 
    116 #*----------------------------------------------------------------------
    117 * Model of a  Steady State condenser with no thermodynamics equilibrium
    118 *---------------------------------------------------------------------*#
    119117Model condenserSteady
    120118        ATTRIBUTES
     
    130128* the inlet stream;
    131129* the pressure drop in the condenser;
    132 * the heat supply.
     130* the InletQ (the model requires an energy stream).
    133131";
    134132
    135133PARAMETERS
    136134        outer PP                as Plugin       (Brief = "External Physical Properties", Type="PP");
    137         outer NComp as Integer;
     135        outer NComp as Integer (Brief = "Number of Components");
    138136
    139137VARIABLES
    140138in      InletVapour             as stream                               (Brief="Vapour inlet stream", PosX=0.3431, PosY=0, Symbol="_{inV}");
    141139out     OutletLiquid as liquid_stream           (Brief="Liquid outlet stream", PosX=0.34375, PosY=1, Symbol="_{outL}");
    142 in      InletQ          as power                                (Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}");
    143         DP                      as press_delta          (Brief="Pressure Drop in the condenser",Default=0);
     140in      InletQ          as power                                (Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}",Protected=true);
     141        Pdrop                   as press_delta          (Brief="Pressure Drop in the condenser",Default=0);
    144142
    145143EQUATIONS
    146144
    147 "Molar Balance"
     145"Molar Flow Balance"
    148146        InletVapour.F = OutletLiquid.F;
     147
     148"Molar Composition Balance"
    149149        InletVapour.z = OutletLiquid.z;
    150150
     
    152152        InletVapour.F*InletVapour.h = OutletLiquid.F*OutletLiquid.h + InletQ;
    153153
    154 "Pressure"
    155         DP = InletVapour.P - OutletLiquid.P;
     154"Pressure Drop"
     155        OutletLiquid.P = InletVapour.P - Pdrop;
    156156
    157157end
    158158
    159 #*-------------------------------------------------------------------
    160 * Condenser with reaction in liquid phase
    161 *--------------------------------------------------------------------*#
    162159Model condenserReact
    163160        ATTRIBUTES
     
    283280* the inlet stream;
    284281* the outlet flows: OutletVapour.F and OutletLiquid.F;
    285 * the model requires an energy stream.
     282* the InletQ (the model requires an energy stream).
    286283       
    287284== Initial Conditions ==
Note: See TracChangeset for help on using the changeset viewer.