Changeset 753 for trunk/eml/streams.mso
- Timestamp:
- May 22, 2009, 1:55:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eml/streams.mso
r669 r753 175 175 CompositionBasis as Switcher (Brief = "Molar or Mass Composition", Valid = ["Molar", "Mass"], Default="Molar"); 176 176 ValidPhases as Switcher (Brief = "Valid Phases for Flash Calculation", Valid = ["Vapour-Only", "Liquid-Only","Vapour-Liquid"], Default="Vapour-Liquid"); 177 178 177 T_std as temperature (Brief = "Standard temperature", Hidden=true, Default = 298.15); 178 P_std as pressure (Brief = "Standard pressure", Hidden=true, Default = 1); 179 179 SET 180 180 … … 189 189 Fw as flow_mass (Brief = "Stream Mass Flow"); 190 190 Fvol as flow_vol (Brief = "Volumetric Flow"); 191 Fvol_std as flow_vol (Brief = "Standard Volumetric Flow (1 atm, 20 C)"); 191 192 T as temperature (Brief = "Stream Temperature"); 192 193 T_Cdeg as temperature (Brief = "Temperature in °C", Lower=-200); … … 198 199 Mw as molweight (Brief = "Average Mol Weight",Protected=true); 199 200 vm as volume_mol (Brief = "Molar Volume",Protected=true); 201 vm_std as volume_mol (Brief = "Standard Molar Volume",Protected=true); 200 202 rho as dens_mass (Brief = "Stream Mass Density",Protected=true); 201 203 rhom as dens_mol (Brief = "Stream Molar Density",Protected=true); … … 242 244 vm = PP.LiquidVolume(Outlet.T, Outlet.P, x); 243 245 246 "Standard Molar Volume" 247 vm_std = PP.LiquidVolume(T_std, P_std, x); 248 244 249 case "Vapour-Only": 245 250 … … 259 264 vm = PP.VapourVolume(Outlet.T, Outlet.P, y); 260 265 266 "Standard Molar Volume" 267 vm_std = PP.VapourVolume(T_std, P_std, y); 261 268 262 269 case "Vapour-Liquid": … … 269 276 270 277 "Molar Volume" 271 vm = (1-Outlet.v)*PP.LiquidVolume(Outlet.T, Outlet.P, x) + Outlet.v*PP.VapourVolume(Outlet.T,Outlet.P,y); 278 vm = (1-Outlet.v)*PP.LiquidVolume(Outlet.T, Outlet.P, x) + Outlet.v*PP.VapourVolume(Outlet.T, Outlet.P, y); 279 280 "Standard Molar Volume" 281 vm_std = (1-Outlet.v)*PP.LiquidVolume(T_std, P_std, x) + Outlet.v*PP.VapourVolume(T_std, P_std, y); 272 282 273 283 end … … 287 297 "Volumetric Flow" 288 298 Fvol = Outlet.F*vm ; 289 299 300 "Standard Volumetric Flow" 301 Fvol_std = Outlet.F*vm_std ; 302 290 303 "Temperature in °C" 291 304 T_Cdeg = Outlet.T - 273.15 * 'K'; … … 431 444 M(NComp) as molweight (Brief = "Component Mol Weight"); 432 445 rhoModel as Switcher (Brief = "Density model", Valid = ["volume", "correlation"], Default="volume"); 433 446 T_std as temperature (Brief = "Standard temperature", Hidden=true, Default = 298.15); 447 P_std as pressure (Brief = "Standard pressure", Hidden=true, Default = 1); 448 434 449 SET 435 450 … … 444 459 Mw as molweight (Brief = "Average Mol Weight"); 445 460 vm as volume_mol (Brief = "Molar Volume"); 461 vm_std as volume_mol (Brief = "Standard Molar Volume",Protected=true); 446 462 rho as dens_mass (Brief = "Stream Mass Density"); 447 463 rhom as dens_mol (Brief = "Stream Molar Density"); 448 464 Fw as flow_mass (Brief = "Stream Mass Flow"); 449 465 Fvol as flow_vol (Brief = "Volumetric Flow"); 466 Fvol_std as flow_vol (Brief = "Standard Volumetric Flow (1 atm, 20 C)"); 450 467 s as entr_mol (Brief = "Stream Entropy"); 451 468 T_Cdeg as temperature (Brief = "Temperature in °C", Lower=-200); … … 475 492 476 493 "Molar Volume" 477 vm = (1-v)*PP.LiquidVolume(Inlet.T, Inlet.P, x) + v*PP.VapourVolume(Inlet.T,Inlet.P,y); 478 494 vm = (1-v)*PP.LiquidVolume(Inlet.T, Inlet.P, x) + v*PP.VapourVolume(Inlet.T, Inlet.P, y); 495 496 "Standard Molar Volume" 497 vm_std = (1-v)*PP.LiquidVolume(T_std, P_std, x) + v*PP.VapourVolume(T_std, P_std, y); 498 479 499 "Volumetric Flow" 480 500 Fvol = Inlet.F*vm ; 481 501 502 "Standard Volumetric Flow" 503 Fvol_std = Inlet.F*vm_std ; 504 482 505 "Mass Fraction" 483 506 zmass = M*Inlet.z / Mw;
Note: See TracChangeset
for help on using the changeset viewer.