Changeset 555 for branches/gui/eml/stage_separators
- Timestamp:
- Jul 18, 2008, 4:01:13 PM (15 years ago)
- Location:
- branches/gui/eml/stage_separators
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r353 r555 51 51 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1, Symbol="_{outL}"); 52 52 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0, Symbol="_{outV}"); 53 in InletQ as energy_stream(Brief="Cold supplied", PosX=1, PosY=0.6311, Symbol="_{in}");53 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0.6311, Symbol="_{in}"); 54 54 55 55 M(NComp) as mol (Brief="Molar Holdup in the tray"); … … 68 68 "Energy Balance" 69 69 diff(E) = InletV.F*InletV.h - OutletL.F*OutletL.h 70 - OutletV.F*OutletV.h + InletQ .Q;70 - OutletV.F*OutletV.h + InletQ; 71 71 72 72 "Molar Holdup" … … 129 129 in InletV as stream(Brief="Vapour inlet stream", PosX=0.3431, PosY=0, Symbol="_{inV}"); 130 130 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.34375, PosY=1, Symbol="_{outL}"); 131 in InletQ as energy_stream(Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}");131 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0.5974, Symbol="_{in}"); 132 132 DP as press_delta (Brief="Pressure Drop in the condenser"); 133 133 … … 138 138 139 139 "Energy Balance" 140 InletV.F*InletV.h = OutletL.F*OutletL.h + InletQ .Q;140 InletV.F*InletV.h = OutletL.F*OutletL.h + InletQ; 141 141 142 142 "Pressure" … … 184 184 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4513, PosY=1, Symbol="_{outL}"); 185 185 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4723, PosY=0, Symbol="_{outV}"); 186 in InletQ as energy_stream(Brief="Cold supplied", PosX=1, PosY=0.6311, Symbol="_{in}");186 in InletQ as power (Brief="Cold supplied", PosX=1, PosY=0.6311, Symbol="_{in}"); 187 187 188 188 M(NComp) as mol (Brief="Molar Holdup in the tray"); … … 210 210 "Energy Balance" 211 211 diff(E) = InletV.F*InletV.h - OutletL.F*OutletL.h 212 - OutletV.F*OutletV.h + InletQ .Q+ Hr * r3 * ML*vL;212 - OutletV.F*OutletV.h + InletQ + Hr * r3 * ML*vL; 213 213 214 214 "Molar Holdup" -
branches/gui/eml/stage_separators/flash.mso
r372 r555 42 42 outer NComp as Integer (Brief = "Number of chemical components", Lower = 1); 43 43 V as volume (Brief="Total Volume of the flash"); 44 Mw(NComp) as molweight ;44 Mw(NComp) as molweight(Protected=true); 45 45 orientation as Switcher (Valid=["vertical","horizontal"],Default="vertical"); 46 46 diameter as length (Brief="Vessel diameter"); … … 53 53 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1, Symbol="_{outL}"); 54 54 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0, Symbol="_{outV}"); 55 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}");56 57 M(NComp) as mol (Brief="Molar Holdup in the tray" );58 ML as mol (Brief="Molar liquid holdup" );59 MV as mol (Brief="Molar vapour holdup" );60 E as energy (Brief="Total Energy Holdup on tray" );61 vL as volume_mol (Brief="Liquid Molar Volume" );62 vV as volume_mol (Brief="Vapour Molar volume" );55 in InletQ as power(Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}"); 56 57 M(NComp) as mol (Brief="Molar Holdup in the tray", Protected=true); 58 ML as mol (Brief="Molar liquid holdup", Protected=true); 59 MV as mol (Brief="Molar vapour holdup", Protected=true); 60 E as energy (Brief="Total Energy Holdup on tray", Protected=true); 61 vL as volume_mol (Brief="Liquid Molar Volume", Protected=true); 62 vV as volume_mol (Brief="Vapour Molar volume", Protected=true); 63 63 Level as length (Brief="liquid height"); 64 Across as area (Brief="Flash Cross section area" );64 Across as area (Brief="Flash Cross section area", Protected=true); 65 65 vfrac as positive (Brief="Vapourization fraction", Symbol="\phi"); 66 66 Pratio as positive (Brief = "Pressure Ratio", Symbol ="P_{ratio}"); 67 67 Pdrop as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P"); 68 68 69 out TI as control_signal(Brief="Temperature Indicator", PosX=1, PosY=0.2); 70 out PI as control_signal(Brief="Pressure Indicator", PosX=1, PosY=0.3); 71 out LI as control_signal(Brief="Level Indicator", PosX=1, PosY=0.4); 72 69 73 EQUATIONS 70 74 "Component Molar Balance" … … 72 76 73 77 "Energy Balance" 74 diff(E) = Inlet.F*Inlet.h - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ .Q;78 diff(E) = Inlet.F*Inlet.h - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ; 75 79 76 80 "Molar Holdup" … … 113 117 "Geometry Constraint" 114 118 V = ML * vL + MV * vV; 119 120 "Temperature indicator" 121 TI * 'K' = OutletL.T - 273.15; 122 "Pressure indicator" 123 PI * 'atm' = OutletL.P; 124 "Level indicator" 125 LI*V = Level*Across; 115 126 116 127 switch orientation … … 121 132 "Liquid Level" 122 133 ML * vL = Across * Level; 123 134 124 135 case "horizontal": 125 136 "Cylindrical Side Area" … … 157 168 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1, Symbol="_{outL}"); 158 169 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0, Symbol="_{outV}"); 159 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}");170 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}"); 160 171 vfrac as fraction (Brief="Vapourization fraction", Symbol="\phi"); 161 172 Pratio as positive (Brief = "Pressure Ratio", Symbol ="P_{ratio}"); … … 173 184 174 185 "Energy Balance" 175 Inlet.F*Inlet.h + InletQ .Q= OutletL.F*OutletL.h + OutletV.F*OutletV.h;186 Inlet.F*Inlet.h + InletQ = OutletL.F*OutletL.h + OutletV.F*OutletV.h; 176 187 177 188 "Thermal Equilibrium" … … 216 227 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1, Symbol="_{outL}"); 217 228 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0, Symbol="_{outV}"); 218 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}");229 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}"); 219 230 vfrac as fraction(Brief="Vaporization fraction", Symbol="\phi"); 220 231 h as enth_mol(Brief="Mixture enthalpy"); … … 232 243 233 244 "Energy Balance" 234 Inlet.F*(h - Inlet.h) = InletQ .Q;245 Inlet.F*(h - Inlet.h) = InletQ; 235 246 Inlet.F*h = Inlet.F*(1-vfrac)*OutletL.h + Inlet.F*vfrac*OutletV.h; 236 247 … … 282 293 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.4790, PosY=1, Symbol="_{outL}"); 283 294 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.4877, PosY=0, Symbol="_{outV}"); 284 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}");295 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7559, Symbol="_{in}"); 285 296 vfrac as fraction(Brief="Vaporization fraction", Symbol="\phi"); 286 297 vsat as Real(Lower=-0.1, Upper=1.1, Brief="Vaporization fraction if saturated", Symbol="\phi_{sat}"); … … 308 319 309 320 "Energy Balance if saturated" 310 Inlet.F*Inlet.h + InletQ .Q=321 Inlet.F*Inlet.h + InletQ = 311 322 Inlet.F*(1-vsat)*PP.LiquidEnthalpy(Tsat, OutletL.P, xsat) + 312 323 Inlet.F*vsat*PP.VapourEnthalpy(Tsat, OutletV.P, ysat); 313 324 314 325 "Real Energy Balance" 315 Inlet.F*Inlet.h + InletQ .Q=326 Inlet.F*Inlet.h + InletQ = 316 327 Inlet.F*(1-vfrac)*OutletL.h + Inlet.F*vfrac*OutletV.h; 317 328 -
branches/gui/eml/stage_separators/reboiler.mso
r353 r555 57 57 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1, Symbol="_{outL}"); 58 58 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0, Symbol="_{outV}"); 59 in InletQ as energy_stream(Brief="Heat supplied", PosX=1, PosY=0.6123, Symbol="_{in}");59 in InletQ as power (Brief="Heat supplied", PosX=1, PosY=0.6123, Symbol="_{in}"); 60 60 61 61 M(NComp) as mol (Brief="Molar Holdup in the tray"); … … 75 75 "Energy Balance" 76 76 diff(E) = Inlet.F*Inlet.h + InletL.F*InletL.h 77 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ .Q;77 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ; 78 78 79 79 "Molar Holdup" … … 140 140 in InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1, Symbol="_{inL}"); 141 141 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0, Symbol="_{outV}"); 142 in InletQ as energy_stream(Brief="Heat supplied", PosX=1, PosY=0.6111, Symbol="_{in}");142 in InletQ as power (Brief="Heat supplied", PosX=1, PosY=0.6111, Symbol="_{in}"); 143 143 vV as volume_mol (Brief="Vapour Molar volume"); 144 144 rhoV as dens_mass (Brief="Vapour Density"); … … 156 156 157 157 "Energy Balance" 158 InletL.F*InletL.h + InletQ .Q= OutletV.F*OutletV.h;158 InletL.F*InletL.h + InletQ = OutletV.F*OutletV.h; 159 159 160 160 "Pressure" … … 187 187 in InletL as stream(Brief="Liquid inlet stream", PosX=0.3345, PosY=1, Symbol="_{inL}"); 188 188 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.3369, PosY=0, Symbol="_{outV}"); 189 in InletQ as energy_stream(Brief="Heat supplied", PosX=1, PosY=0.6111, Symbol="_{in}");189 in InletQ as power (Brief="Heat supplied", PosX=1, PosY=0.6111, Symbol="_{in}"); 190 190 191 191 EQUATIONS … … 195 195 196 196 "Energy Balance" 197 InletL.F*InletL.h + InletQ .Q= OutletV.F*OutletV.h;197 InletL.F*InletL.h + InletQ = OutletV.F*OutletV.h; 198 198 199 199 "Pressure" … … 207 207 208 208 "Pressure Drop through the reboiler" 209 OutletV.F = k*InletQ .Q;209 OutletV.F = k*InletQ; 210 210 end 211 211 … … 253 253 out OutletL as liquid_stream(Brief="Liquid outlet stream", PosX=0.2413, PosY=1, Symbol="_{outL}"); 254 254 out OutletV as vapour_stream(Brief="Vapour outlet stream", PosX=0.5079, PosY=0, Symbol="_{outV}"); 255 in InletQ as energy_stream(Brief="Heat supplied", PosX=1, PosY=0.6123, Symbol="_{in}");255 in InletQ as power (Brief="Heat supplied", PosX=1, PosY=0.6123, Symbol="_{in}"); 256 256 257 257 M(NComp) as mol (Brief="Molar Holdup in the tray"); … … 281 281 "Energy Balance" 282 282 diff(E) = Inlet.F*Inlet.h + InletL.F*InletL.h 283 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ .Q+ Hr * r3 * vL*ML;283 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ + Hr * r3 * vL*ML; 284 284 285 285 "Molar Holdup" -
branches/gui/eml/stage_separators/tank.mso
r353 r555 61 61 in Inlet as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0, Symbol="_{in}"); 62 62 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 63 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}");63 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}"); 64 64 Level as length(Brief="Tank level"); 65 65 M(NComp) as mol (Brief="Molar Holdup in the tank"); … … 72 72 73 73 "Energy balance" 74 diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ .Q;74 diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ; 75 75 76 76 "Energy Holdup" … … 121 121 in Inlet as stream (Brief = "Inlet stream", PosX=0.1825, PosY=0, Symbol="_{in}"); 122 122 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 123 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.6160, Symbol="_{in}");123 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.6160, Symbol="_{in}"); 124 124 Level as length(Brief="Tank level"); 125 125 Across as area (Brief="Tank cross section area", Default=2); … … 133 133 134 134 "Energy balance" 135 diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ .Q;135 diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ; 136 136 137 137 "Energy Holdup" … … 212 212 in Inlet as stream (Brief = "Inlet stream", PosX=0.3037, PosY=0, Symbol="_{in}"); 213 213 out Outlet as liquid_stream (Brief = "Outlet liquid stream", PosX=1, PosY=1, Symbol="_{out}"); 214 in InletQ as energy_stream(Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}");214 in InletQ as power (Brief="Rate of heat supply", PosX=1, PosY=0.7859, Symbol="_{in}"); 215 215 216 216 Level as length(Brief="Tank level"); … … 224 224 225 225 "Energy balance" 226 diff(E) = Feed.F*Feed.h + Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ .Q;226 diff(E) = Feed.F*Feed.h + Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ; 227 227 228 228 "Energy Holdup"
Note: See TracChangeset
for help on using the changeset viewer.