Changeset 123 for branches/newlanguage/eml/streams.mso
- Timestamp:
- Jan 19, 2007, 12:03:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/streams.mso
r117 r123 26 26 Pallete = false; 27 27 Brief = "General Material Stream"; 28 Documentation=28 Info = 29 29 "This is the basic building block for the EML models. 30 30 Every model should have input and output streams derived … … 47 47 Pallete = false; 48 48 Brief = "Liquid Material Stream"; 49 Documentation=49 Info = 50 50 "Model for liquid material streams. 51 51 This model should be used only when the phase of the stream … … 66 66 Pallete = false; 67 67 Brief = "Vapour Material Stream"; 68 Documentation=68 Info = 69 69 "Model for vapour material streams. 70 70 This model should be used only when the phase of the stream … … 83 83 Model source 84 84 ATTRIBUTES 85 Documentation=85 Info = 86 86 "Material stream source. 87 87 This model should be used for boundary streams. … … 97 97 x(NComp) as fraction(Brief = "Liquid Molar Fraction"); 98 98 y(NComp) as fraction(Brief = "Vapour Molar Fraction"); 99 hl as enth_mol; 100 hv as enth_mol; 99 101 100 102 EQUATIONS … … 104 106 Outlet.h = (1-Outlet.v)*PP.LiquidEnthalpy(Outlet.T, Outlet.P, x) + 105 107 Outlet.v*PP.VapourEnthalpy(Outlet.T, Outlet.P, y); 108 109 hl = PP.LiquidEnthalpy(Outlet.T, Outlet.P, x); 110 hv = PP.VapourEnthalpy(Outlet.T, Outlet.P, y); 111 end 112 113 Model sink2 114 VARIABLES 115 in Inlet as stream; 106 116 end 107 117 108 118 Model sink 109 119 ATTRIBUTES 110 Documentation=120 Info = 111 121 "Material stream sink. 112 122 This model should be used for boundary streams."; … … 124 134 EQUATIONS 125 135 "Flash Calculation" 126 [v, x, y] = PP. PHFlash(Inlet.P, Inlet.h, Inlet.z);136 [v, x, y] = PP.FlashPH(Inlet.P, Inlet.h, Inlet.z); 127 137 end
Note: See TracChangeset
for help on using the changeset viewer.