Ignore:
Timestamp:
Jul 25, 2008, 3:57:20 PM (15 years ago)
Author:
gerson bicca
Message:

updated source_testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/streams.mso

    r571 r575  
    610610
    611611"Stream Molar Composition"
    612         Outlet.z = (Composition/sum(Composition)/M)*sum(M*Outlet.z);# do not converge fixme !!!!!
    613 
    614 end
    615 
     612        Outlet.z*sum(zmass/M) = zmass/M;
     613
     614end
     615
     616"Average Molecular Weight"
     617        Mw = sum(M*Outlet.z);
     618       
    616619        "Flash Calculation"
    617620        [Outlet.v, x, y] = PP.Flash(Outlet.T, Outlet.P, Outlet.z);
     
    634637        "Vapour Entropy"
    635638        sv = PP.VapourEntropy(Outlet.T, Outlet.P, y);
    636 
    637         "Average Molecular Weight"
    638         Mw = sum(M*Outlet.z);
    639639
    640640        switch rhoModel
     
    645645                case "correlation":
    646646        "Mass Density"
    647                 rho*((1-Outlet.v)/PP.LiquidDensity(Outlet.T,Outlet.P,x) + Outlet.v/PP.VapourDensity(Outlet.T,Outlet.P,y)) = 1;
     647                rho = (1-Outlet.v)*PP.LiquidDensity(Outlet.T,Outlet.P,x) + Outlet.v*PP.VapourDensity(Outlet.T,Outlet.P,y);
    648648        end
    649649       
Note: See TracChangeset for help on using the changeset viewer.