Ignore:
Timestamp:
Jan 22, 2007, 5:57:16 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated some models for the new language proposal

File:
1 edited

Legend:

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

    r124 r125  
    8181end
    8282
     83Model streamPH as stream
     84        PARAMETERS
     85        outer PP as Plugin(Brief = "External Physical Properties", Type="PP");
     86        outer NComp as Integer (Brief = "Number of chemical components", Lower = 1);
     87       
     88        VARIABLES
     89        x(NComp) as fraction(Brief = "Liquid Molar Fraction");
     90        y(NComp) as fraction(Brief = "Vapour Molar Fraction");
     91       
     92        EQUATIONS
     93        "Flash Calculation"
     94        [v, x, y] = PP.FlashPH(P, h, z);
     95        "Enthalpy"
     96        h = (1-v)*PP.LiquidEnthalpy(T, P, x) +
     97                v*PP.VapourEnthalpy(T, P, y);
     98end
     99
    83100Model source
    84101        ATTRIBUTES
Note: See TracChangeset for help on using the changeset viewer.