Ignore:
Timestamp:
Aug 14, 2009, 5:20:34 PM (13 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

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

    r830 r831  
    4949
    5050        Mw(NComp)       as molweight    (Brief = "Component Mol Weight",Hidden=true);
    51         low_flow        as flow_mol     (Brief = "Low Flow",Default = 1E-6, Hidden=true);
    52         zero_flow       as flow_mol     (Brief = "No Flow",Default = 0, Hidden=true);
    53         KfConst         as area                 (Brief="Constant for K factor pressure drop", Default = 1, Hidden=true);
    54 
    55         VapourFlow      as Switcher     (Brief="Vapour Flow", Valid = ["on", "off"], Default = "on",Hidden=true);
    56 
    57         Kfactor as positive (Brief="K factor for pressure drop", Lower = 1E-8, Default = 1E-3);
    5851        Pdrop   as press_delta  (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P");
    5952
     
    6154
    6255        Mw   = PP.MolecularWeight();
    63         low_flow = 1E-6 * 'kmol/h';
    64         zero_flow = 0 * 'kmol/h';
    65         KfConst = 1*'m^2';
    6656
    6757VARIABLES
     
    7868       
    7969EQUATIONS
    80 
    81 switch VapourFlow
    82 
    83 case "on":
    84         InletVapour.F*sum(Mw*InletVapour.z) = Kfactor *sqrt(Pdrop*rho)*KfConst;
    85 
    86         when InletVapour.F < low_flow switchto "off";
    87 
    88 case "off":
    89         InletVapour.F = zero_flow;
    90 
    91         when InletVapour.P > OutletLiquid.P switchto "on";
    92 
    93 end
    9470
    9571"Molar Flow Balance"
Note: See TracChangeset for help on using the changeset viewer.