Changeset 793 for branches/gui/eml/stage_separators/reboiler.mso
- Timestamp:
- Jul 15, 2009, 3:53:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/reboiler.mso
r784 r793 20 20 using "streams"; 21 21 22 Model reboiler 22 Model reboiler2 23 23 ATTRIBUTES 24 24 Pallete = true; … … 340 340 end 341 341 342 Model reboiler _column342 Model reboiler 343 343 344 344 ATTRIBUTES 345 Pallete 346 Icon = "icon/reboiler_column";345 Pallete = true; 346 Icon = "icon/Reboiler"; 347 347 Brief = "Model of a dynamic reboiler - kettle with control."; 348 348 Info = 349 "== A ssumptions==349 "== ASSUMPTIONS == 350 350 351 351 * perfect mixing of both phases; … … 353 353 * no liquid entrainment in the vapour stream. 354 354 355 == S pecify==356 357 * the liquid inletstream;355 == SPECIFY == 356 357 * the InletLiquid stream; 358 358 * the outlet flows: OutletVapour.F and OutletLiquid.F; 359 * the model requires an energy stream. 360 361 == Initial Conditions == 359 * the InletQ (the model requires an energy stream, also you can use a controller for setting the heat duty using the heat_flow model). 360 361 == OPTIONAL == 362 * the reboiler model has three control ports 363 ** TI OutletLiquid Temperature Indicator; 364 ** PI OutletLiquid Pressure Indicator; 365 ** LI Level Indicator of Reboiler; 366 367 == INITIAL CONDITIONS == 362 368 363 369 * Initial_Temperature : the reboiler temperature (OutletLiquid.T); … … 367 373 368 374 PARAMETERS 369 outer PP as Plugin(Brief = "External Physical Properties", Type="PP");375 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 370 376 outer NComp as Integer (Brief="Number of Components"); 371 Across as area(Brief="Cross Section Area of reboiler");372 V 373 374 Initial_Level as length(Brief="Initial Level of liquid phase");375 Initial_Temperature 376 Initial_Composition(NComp) as positive 377 Across as area (Brief="Cross Section Area of reboiler"); 378 V as volume (Brief="Total volume of reboiler"); 379 380 Initial_Level as length (Brief="Initial Level of liquid phase"); 381 Initial_Temperature as temperature (Brief="Initial Temperature of Reboiler"); 382 Initial_Composition(NComp) as positive (Brief="Initial Liquid Composition",Lower=1E-6); 377 383 378 384 VARIABLES 379 385 380 in InletLiquid as stream (Brief="Liquid inlet stream", PosX=0, PosY=0.80, Symbol="_{inL}");381 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.50, PosY=1, Symbol="_{outL}");382 out OutletVapour as vapour_stream (Brief="Vapour outlet stream", PosX=0. 50, PosY=0, Symbol="_{outV}");383 in InletQ as power (Brief="Heat supplied", Protected = true, PosX=1, PosY=0.55, Symbol="_{in}");384 385 out T CI as control_signal (Brief="Temperature Indicator of Reboiler", Protected = true, PosX=1, PosY=0.40);386 out L CI as control_signal (Brief="Level Indicator of Reboiler", Protected = true, PosX=1, PosY=0.25);387 out P CI as control_signal (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=1, PosY=0.10);388 389 M(NComp) as mol 390 ML as mol(Brief="Molar liquid holdup", Protected = true);391 MV as mol(Brief="Molar vapour holdup", Protected = true);392 E as energy(Brief="Total Energy Holdup on tray", Protected = true);393 vL 394 vV 395 rhoV as dens_mass (Brief="Vapour Density", Protected = true);396 Level as length(Brief="Level of liquid phase", Protected = true);397 Pdrop as press_delta(Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true);386 in InletLiquid as stream (Brief="Liquid inlet stream", PosX=0.17, PosY=1, Symbol="_{in}^{Liquid}"); 387 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}"); 388 out OutletVapour as vapour_stream (Brief="Vapour outlet stream", PosX=0.17, PosY=0, Symbol="_{out}^{Vapour}"); 389 in InletQ as power (Brief="Heat supplied", Protected = true, PosX=1, PosY=0.08, Symbol="Q_{in}"); 390 391 out TI as control_signal (Brief="Temperature Indicator of Reboiler", Protected = true, PosX=0.44, PosY=0); 392 out LI as control_signal (Brief="Level Indicator of Reboiler", Protected = true, PosX=0.53, PosY=0); 393 out PI as control_signal (Brief="Pressure Indicator of Reboiler", Protected = true, PosX=0.35, PosY=0); 394 395 M(NComp) as mol (Brief="Molar Holdup in the tray", Protected = true); 396 ML as mol (Brief="Molar liquid holdup", Protected = true); 397 MV as mol (Brief="Molar vapour holdup", Protected = true); 398 E as energy (Brief="Total Energy Holdup on tray", Protected = true); 399 vL as volume_mol (Brief="Liquid Molar Volume", Protected = true); 400 vV as volume_mol (Brief="Vapour Molar volume", Protected = true); 401 rhoV as dens_mass (Brief="Vapour Density", Protected = true, Symbol="\rho"); 402 Level as length (Brief="Level of liquid phase", Protected = true); 403 Pdrop as press_delta (Brief = "Pressure Drop", DisplayUnit = 'kPa', Symbol ="\Delta P", Protected=true); 398 404 399 405 INITIAL 400 406 401 Level = Initial_Level; 402 OutletLiquid.T = Initial_Temperature; 403 OutletLiquid.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition); 407 "Initial Level" 408 Level = Initial_Level; 409 410 "Initial Temperature" 411 OutletLiquid.T = Initial_Temperature; 412 413 "Initial Composition" 414 OutletLiquid.z(1:NComp-1) = Initial_Composition(1:NComp-1)/sum(Initial_Composition); 404 415 405 416 EQUATIONS 417 406 418 "Component Molar Balance" 407 419 diff(M)= InletLiquid.F*InletLiquid.z - OutletLiquid.F*OutletLiquid.z - OutletVapour.F*OutletVapour.z; … … 450 462 451 463 "Temperature Indicator" 452 T CI * 'K' = OutletLiquid.T;464 TI * 'K' = OutletLiquid.T; 453 465 454 466 "Pressure Indicator" 455 P CI * 'atm' = OutletLiquid.P;467 PI * 'atm' = OutletLiquid.P; 456 468 457 469 "Level indicator" 458 L CI*V = Level*Across;470 LI*V = Level*Across; 459 471 460 472 end
Note: See TracChangeset
for help on using the changeset viewer.