Changeset 802 for branches/gui


Ignore:
Timestamp:
Jul 20, 2009, 12:51:45 PM (13 years ago)
Author:
gerson bicca
Message:

vapour flow equation in condenser model

File:
1 edited

Legend:

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

    r801 r802  
    4747        outer PP        as Plugin       (Brief = "External Physical Properties", Type="PP");
    4848        outer NComp as Integer  (Brief = "Number of Components");
    49 
     49       
     50        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);
    5058        Pdrop   as press_delta  (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P");
     59
     60SET
     61
     62        Mw   = PP.MolecularWeight();
     63        low_flow = 1E-6 * 'kmol/h';
     64        zero_flow = 0 * 'kmol/h';
     65        KfConst = 1*'m^2';
    5166
    5267VARIABLES
     
    5469        out     OutletLiquid    as liquid_stream        (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}");
    5570        in      InletQ                  as power                        (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true);
    56 
     71       
     72        rho     as dens_mass    (Brief ="Inlet Vapour Mass Density",Hidden=true, Symbol ="\rho");
     73       
    5774        out     TI as control_signal    (Brief="Temperature  Indicator of Condenser", Protected = true, PosX=0.50, PosY=0);
    5875        out     PI as control_signal    (Brief="Pressure  Indicator of Condenser", Protected = true, PosX=0.32, PosY=0);
     
    6077EQUATIONS
    6178
     79switch VapourFlow
     80
     81case "on":
     82        InletVapour.F*sum(Mw*InletVapour.z) = Kfactor *sqrt(Pdrop*rho)*KfConst;
     83
     84        when InletVapour.F < low_flow switchto "off";
     85
     86case "off":
     87        InletVapour.F = zero_flow;
     88
     89        when InletVapour.P > OutletLiquid.P switchto "on";
     90
     91end
     92
    6293"Molar Flow Balance"
    6394        InletVapour.F = OutletLiquid.F;
     
    6899"Energy Balance"
    69100        InletVapour.F*InletVapour.h = OutletLiquid.F*OutletLiquid.h + InletQ;
     101
     102"Inlet Vapour Density"
     103        rho = PP.VapourDensity(InletVapour.T, InletVapour.P, InletVapour.z);
    70104
    71105"Pressure Drop"
Note: See TracChangeset for help on using the changeset viewer.