Changeset 575 for branches/gui/eml/streams.mso
- Timestamp:
- Jul 25, 2008, 3:57:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/streams.mso
r571 r575 610 610 611 611 "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 614 end 615 616 "Average Molecular Weight" 617 Mw = sum(M*Outlet.z); 618 616 619 "Flash Calculation" 617 620 [Outlet.v, x, y] = PP.Flash(Outlet.T, Outlet.P, Outlet.z); … … 634 637 "Vapour Entropy" 635 638 sv = PP.VapourEntropy(Outlet.T, Outlet.P, y); 636 637 "Average Molecular Weight"638 Mw = sum(M*Outlet.z);639 639 640 640 switch rhoModel … … 645 645 case "correlation": 646 646 "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); 648 648 end 649 649
Note: See TracChangeset
for help on using the changeset viewer.