Ignore:
Timestamp:
Feb 26, 2009, 11:00:39 PM (14 years ago)
Author:
gerson bicca
Message:

updates (some samples are obsoletes)

File:
1 edited

Legend:

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

    r580 r735  
    4949        VARIABLES
    5050in      Inlet   as stream (Brief="Feed stream", PosX=0, PosY=0.9385, Symbol="_{in}");
    51 in      InletL  as stream (Brief="Liquid inlet stream", PosX=0.5, PosY=0.1984, Symbol="_{inL}"); # FIXME
    52 out     OutletV as vapour_stream (Brief="Vapour outlet stream", PosX=1, PosY=0.1984, Symbol="_{outV}");
     51in      InletLiquid     as stream (Brief="Liquid inlet stream", PosX=0.5, PosY=0.1984, Symbol="_{inL}"); # FIXME
     52out     OutletVapour as vapour_stream (Brief="Vapour outlet stream", PosX=1, PosY=0.1984, Symbol="_{outV}");
    5353in      InletQ  as power (Brief="Heat supplied", PosX=1, PosY=0.9578, Symbol="_{in}");
    5454
     
    6868       
    6969        "Component Molar Balance"
    70         diff(M)= Inlet.F*Inlet.z + InletL.F*InletL.z - OutletV.F*OutletV.z;
     70        diff(M)= Inlet.F*Inlet.z + InletLiquid.F*InletLiquid.z - OutletVapour.F*OutletVapour.z;
    7171       
    7272        "Energy Balance"
    73         diff(E) = Inlet.F*Inlet.h + InletL.F*InletL.h - OutletV.F*OutletV.h + InletQ;
     73        diff(E) = Inlet.F*Inlet.h + InletLiquid.F*InletLiquid.h - OutletVapour.F*OutletVapour.h + InletQ;
    7474       
    7575        "Molar Holdup"
    76         M = ML*x + MV*OutletV.z;
     76        M = ML*x + MV*OutletVapour.z;
    7777       
    7878        "Energy Holdup"
    79         E = ML*h + MV*OutletV.h - P*V;
     79        E = ML*h + MV*OutletVapour.h - P*V;
    8080       
    8181        "Mol fraction normalisation"
    8282        sum(x)=1.0;
    83         sum(x)=sum(OutletV.z);
     83        sum(x)=sum(OutletVapour.z);
    8484
    8585        "Liquid Volume"
     
    8787       
    8888        "Vapour Volume"
    89         volV = PP.VapourVolume(OutletV.T, OutletV.P, OutletV.z);
     89        volV = PP.VapourVolume(OutletVapour.T, OutletVapour.P, OutletVapour.z);
    9090       
    9191        "Chemical Equilibrium"
    9292        PP.LiquidFugacityCoefficient(T, P, x)*x =
    93                 PP.VapourFugacityCoefficient(OutletV.T, OutletV.P, OutletV.z)*OutletV.z;
     93                PP.VapourFugacityCoefficient(OutletVapour.T, OutletVapour.P, OutletVapour.z)*OutletVapour.z;
    9494
    9595        "Mechanical Equilibrium"
    96         P = OutletV.P;
     96        P = OutletVapour.P;
    9797       
    9898        "Thermal Equilibrium"
    99         T = OutletV.T;
     99        T = OutletVapour.T;
    100100       
    101101        "Geometry Constraint"
Note: See TracChangeset for help on using the changeset viewer.