Changeset 125 for branches/newlanguage/eml/streams.mso
- Timestamp:
- Jan 22, 2007, 5:57:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/streams.mso
r124 r125 81 81 end 82 82 83 Model 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); 98 end 99 83 100 Model source 84 101 ATTRIBUTES
Note: See TracChangeset
for help on using the changeset viewer.