Changeset 64
- Timestamp:
- Nov 24, 2006, 12:48:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mso/eml/stage_separators/tank.mso
r42 r64 131 131 Fout = k*sqrt(h); 132 132 end 133 134 Model tank_feed 135 136 PARAMETERS 137 ext PP as CalcObject; 138 ext NComp as Integer; 139 Across as area (Brief="Tank cross section area", Default=2); 140 141 VARIABLES 142 in Feed as stream; 143 in Inlet as stream; 144 out Outlet as stream_therm; 145 146 in Q as heat_rate (Brief="Rate of heat supply"); 147 Level as length(Brief="Tank level"); 148 M(NComp) as mol (Brief="Molar Holdup in the tank"); 149 E as energy (Brief="Total Energy Holdup on tank"); 150 vL as volume_mol (Brief="Liquid Molar Volume"); 151 152 EQUATIONS 153 "Mass balance" 154 diff(M) = Feed.F*Feed.z + Inlet.F*Inlet.z - Outlet.F*Outlet.z; 155 156 "Energy balance" 157 diff(E) = Feed.F*Feed.h + Inlet.F*Inlet.h - Outlet.F*Outlet.h + Q; 158 159 "Energy Holdup" 160 E = sum(M)*Outlet.h; 161 162 "Mechanical Equilibrium" 163 Inlet.P = Outlet.P; 164 165 "Liquid Volume" 166 vL = PP.LiquidVolume(Outlet.T, Outlet.P, Outlet.z); 167 168 "Composition" 169 M = Outlet.z*sum(M); 170 171 "Level of liquid phase" 172 Level = sum(M)*vL/Across; 173 174 "Vapourisation Fraction" 175 Outlet.v = Inlet.v; 176 177 end
Note: See TracChangeset
for help on using the changeset viewer.