Changeset 884 for branches/gui/eml
- Timestamp:
- Nov 12, 2009, 6:59:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r882 r884 514 514 end 515 515 516 517 Model condenserSubcooled2 518 519 ATTRIBUTES 520 Pallete = true; 521 Icon = "icon/CondenserSteady"; 522 Brief = "Model of a Steady State total condenser with specified temperature outlet conditions."; 523 Info = 524 "A simple model of a simple Steady State total condenser with specified temperature (or subcooling degree), with a real 525 calculation of the output stream enthalpy. 526 527 == ASSUMPTIONS == 528 * perfect mixing of both phases; 529 * saturated vapour at the Inlet. 530 * no thermodynamics equilibrium. 531 532 == SET == 533 * the fake Outlet temperature ; 534 * the pressure drop in the condenser; 535 536 == SPECIFY == 537 * the InletVapour stream; 538 * the subcooled temperature OR the the degree of subcooling. 539 540 == OPTIONAL == 541 * the condenser model has two control ports 542 ** TI OutletLiquid Temperature Indicator; 543 ** PI OutletLiquid Pressure Indicator; 544 "; 545 546 PARAMETERS 547 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 548 outer NComp as Integer (Brief = "Number of Components"); 549 550 Pdrop as press_delta (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P"); 551 #Fake_Temperature as temperature (Brief="Fake temperature", Symbol = "T_{fake}"); 552 553 554 VARIABLES 555 in InletVapour as stream (Brief="Vapour inlet stream", PosX=0.16, PosY=0, Symbol="_{in}^{Vapour}"); 556 out OutletLiquid as stream (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}"); 557 #in InletQ as power (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true); 558 SubcoolingDegree as temp_delta (Brief="Subcooling Degree", Symbol = "\Delta _{sub}"); 559 T_sub as temperature (Brief="Condensate temperature (subcooled)", Symbol = "T_{sub}"); 560 Tbubble as temperature (Brief="Bubble point at the condenser conditions", Protected = true, Symbol = "T_{b}"); 561 CondenserDuty as power (Brief="Calculated condenser duty for desired subcooling", Protected = true, Symbol = "Q_{cond}"); 562 563 out TI as control_signal (Brief="Temperature Indicator of Condenser", Protected = true, PosX=0.50, PosY=0); 564 out PI as control_signal (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.32, PosY=0); 565 566 EQUATIONS 567 568 "Molar Flow Balance" 569 InletVapour.F = OutletLiquid.F; 570 571 "Molar Composition Balance" 572 InletVapour.z = OutletLiquid.z; 573 574 #"Energy Balance" 575 #InletVapour.F*InletVapour.h + InletQ = OutletLiquid.F*OutletLiquid.h; 576 577 "Pressure Drop" 578 OutletLiquid.P = InletVapour.P - Pdrop; 579 580 "Subcooled Temperature" 581 OutletLiquid.T = T_sub; 582 583 "Bubble Temperature" 584 Tbubble = PP.BubbleT(OutletLiquid.P,OutletLiquid.z); 585 586 "Degree of subcooling" 587 SubcoolingDegree = Tbubble - T_sub; 588 589 "Liquid enthalpy" 590 OutletLiquid.h = PP.LiquidEnthalpy(OutletLiquid.T, OutletLiquid.P, OutletLiquid.z); 591 592 "Condenser Duty" 593 CondenserDuty = OutletLiquid.F*OutletLiquid.h - InletVapour.F*InletVapour.h; 594 595 "Vapourisation Fraction" 596 OutletLiquid.v = 0; 597 598 "Temperature indicator" 599 TI * 'K' = OutletLiquid.T; 600 601 "Pressure indicator" 602 PI * 'atm' = OutletLiquid.P; 603 604 end 605
Note: See TracChangeset
for help on using the changeset viewer.