Changeset 768 for branches/gui/eml
- Timestamp:
- Jun 17, 2009, 6:45:31 PM (14 years ago)
- Location:
- branches/gui/eml/stage_separators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r767 r768 294 294 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 295 295 outer NComp as Integer (Brief="Number of Components"); 296 297 Mw(NComp) as molweight (Brief = "Component Mol Weight",Hidden=true); 298 299 300 VapourFlow as Switcher (Brief="Vapour Flow", Valid = ["on", "off"], Default = "on",Hidden=true); 296 301 297 302 V as volume (Brief="Condenser total volume"); 298 303 Across as area (Brief="Cross Section Area of condenser"); 304 Kfactor as positive (Brief="K factor for pressure drop", Lower = 1E-8, Default = 1E-3); 299 305 300 306 Initial_Level as length (Brief="Initial Level of liquid phase"); … … 313 319 out PCI as control_signal (Brief="Pressure Indicator of Condenser", Protected = true, PosX=1, PosY=0.10); 314 320 315 M(NComp) as mol (Brief="Molar Holdup in the tray"); 316 ML as mol (Brief="Molar liquid holdup"); 317 MV as mol (Brief="Molar vapour holdup"); 318 E as energy (Brief="Total Energy Holdup on tray"); 319 vL as volume_mol (Brief="Liquid Molar Volume"); 320 vV as volume_mol (Brief="Vapour Molar volume"); 321 Level as length (Brief="Level of liquid phase"); 322 321 M(NComp) as mol (Brief="Molar Holdup in the tray", Protected = true); 322 ML as mol (Brief="Molar liquid holdup", Protected = true); 323 MV as mol (Brief="Molar vapour holdup", Protected = true); 324 E as energy (Brief="Total Energy Holdup on tray", Protected = true); 325 vL as volume_mol (Brief="Liquid Molar Volume", Protected = true); 326 vV as volume_mol (Brief="Vapour Molar volume", Protected = true); 327 rho as dens_mass (Brief ="Inlet Vapour Mass Density",Hidden=true); 328 Level as length (Brief="Level of liquid phase", Protected = true); 329 Pdrop as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true); 330 331 SET 332 333 Mw = PP.MolecularWeight(); 334 323 335 INITIAL 324 336 … … 331 343 "Initial Composition" 332 344 OutletLiquid.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition); 333 345 334 346 EQUATIONS 347 348 switch VapourFlow 349 350 case "on": 351 InletVapour.F*sum(Mw*InletVapour.z) = Kfactor *sqrt(Pdrop*rho)*'m^2'; 352 353 when InletVapour.F < 1E-6 * 'kmol/h' switchto "off"; 354 355 case "off": 356 InletVapour.F = 0 * 'mol/s'; 357 358 when InletVapour.P > OutletLiquid.P switchto "on"; 359 360 end 361 335 362 "Component Molar Balance" 336 363 diff(M) = InletVapour.F*InletVapour.z - OutletLiquid.F*OutletLiquid.z- OutletVapour.F*OutletVapour.z; … … 357 384 vV = PP.VapourVolume(OutletVapour.T, OutletVapour.P, OutletVapour.z); 358 385 386 "Inlet Vapour Density" 387 rho = PP.VapourDensity(InletVapour.T, InletVapour.P, InletVapour.z); 388 359 389 "Chemical Equilibrium" 360 390 PP.LiquidFugacityCoefficient(OutletLiquid.T, OutletLiquid.P, OutletLiquid.z)*OutletLiquid.z = … … 367 397 OutletVapour.P = OutletLiquid.P; 368 398 399 "Pressure Drop" 400 OutletLiquid.P = InletVapour.P - Pdrop; 401 369 402 "Geometry Constraint" 370 403 V = ML*vL + MV*vV; -
branches/gui/eml/stage_separators/reboiler.mso
r767 r768 385 385 out PCI as control_signal (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.10); 386 386 387 M(NComp) as mol (Brief="Molar Holdup in the tray"); 388 ML as mol (Brief="Molar liquid holdup"); 389 MV as mol (Brief="Molar vapour holdup"); 390 E as energy (Brief="Total Energy Holdup on tray"); 391 vL as volume_mol (Brief="Liquid Molar Volume"); 392 vV as volume_mol (Brief="Vapour Molar volume"); 393 rhoV as dens_mass (Brief="Vapour Density"); 394 Level as length (Brief="Level of liquid phase"); 387 M(NComp) as mol (Brief="Molar Holdup in the tray", Protected = true); 388 ML as mol (Brief="Molar liquid holdup", Protected = true); 389 MV as mol (Brief="Molar vapour holdup", Protected = true); 390 E as energy (Brief="Total Energy Holdup on tray", Protected = true); 391 vL as volume_mol (Brief="Liquid Molar Volume", Protected = true); 392 vV as volume_mol (Brief="Vapour Molar volume", Protected = true); 393 rhoV as dens_mass (Brief="Vapour Density", Protected = true); 394 Level as length (Brief="Level of liquid phase", Protected = true); 395 Pdrop as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true); 395 396 396 397 INITIAL … … 437 438 OutletLiquid.T = OutletVapour.T; 438 439 440 "Pressure Drop" 441 OutletLiquid.P = InletLiquid.P - Pdrop; 442 439 443 "Geometry Constraint" 440 444 V = ML*vL + MV*vV;
Note: See TracChangeset
for help on using the changeset viewer.