Changeset 834


Ignore:
Timestamp:
Aug 19, 2009, 9:55:54 PM (13 years ago)
Author:
gerson bicca
Message:

updated condenser model

Location:
branches/gui/eml/stage_separators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/stage_separators/condenser.mso

    r831 r834  
    4848        outer NComp as Integer  (Brief = "Number of Components");
    4949
    50         Mw(NComp)       as molweight    (Brief = "Component Mol Weight",Hidden=true);
    5150        Pdrop   as press_delta  (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P");
    52 
    53 SET
    54 
    55         Mw   = PP.MolecularWeight();
    5651
    5752VARIABLES
     
    5954        out     OutletLiquid    as liquid_stream        (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}");
    6055        in      InletQ                  as power                        (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true);
    61        
    62         rho     as dens_mass    (Brief ="Inlet Vapour Mass Density",Hidden=true, Symbol ="\rho");
     56
    6357        Tbubble as temperature  (Brief ="Bubble Temperature",Protected=true, Symbol ="T_{bubble}");
    6458        Deg_Subcooled   as temp_delta   (Brief ="Degrees subcooled",Symbol ="\Delta T_{subcooled}");
    65        
     59
    6660        out     TI as control_signal    (Brief="Temperature  Indicator of Condenser", Protected = true, PosX=0.50, PosY=0);
    6761        out     PI as control_signal    (Brief="Pressure  Indicator of Condenser", Protected = true, PosX=0.32, PosY=0);
    68        
     62
    6963EQUATIONS
    7064
     
    7872        InletVapour.F*InletVapour.h  + InletQ = OutletLiquid.F*OutletLiquid.h;
    7973
    80 "Inlet Vapour Density"
    81         rho = PP.VapourDensity(InletVapour.T, InletVapour.P, InletVapour.z);
    82 
    8374"Pressure Drop"
    8475        OutletLiquid.P = InletVapour.P - Pdrop;
     
    9081        OutletLiquid.T = Tbubble-Deg_Subcooled;
    9182
     83"Temperature indicator"
     84        TI * 'K' = OutletLiquid.T;
     85
     86"Pressure indicator"
     87        PI * 'atm' = OutletLiquid.P;
     88
     89end
     90
     91Model condenserSteady_fakeH
     92
     93ATTRIBUTES
     94        Pallete         = true;
     95        Icon            = "icon/CondenserSteady";
     96        Brief           = "Model of a  Steady State condenser with fake calculation of outlet conditions.";
     97        Info            =
     98"Model of a  Steady State condenser with fake calculation of output temperature, but with a real
     99calculation of the output stream enthalpy.
     100
     101== ASSUMPTIONS ==
     102* perfect mixing of both phases;
     103* no thermodynamics equilibrium.
     104
     105== SET ==
     106* the fake Outlet temperature ;
     107* the pressure drop in the condenser;
     108
     109== SPECIFY ==
     110* the InletVapour stream;
     111* the InletQ (the model requires an energy stream, also you can use a controller for setting the heat duty using the heat_flow model).
     112
     113== OPTIONAL ==
     114* the condenser model has two control ports
     115** TI OutletLiquid Temperature Indicator;
     116** PI OutletLiquid Pressure Indicator;
     117";
     118
     119PARAMETERS
     120        outer PP        as Plugin       (Brief = "External Physical Properties", Type="PP");
     121        outer NComp as Integer  (Brief = "Number of Components");
     122
     123        Pdrop   as press_delta  (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P");
     124        Fake_Temperature                as temperature  (Brief="Fake temperature", Symbol = "T_{fake}");
     125
     126
     127VARIABLES
     128        in      InletVapour     as stream       (Brief="Vapour inlet stream", PosX=0.16, PosY=0, Symbol="_{in}^{Vapour}");
     129        out     OutletLiquid    as stream       (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}");
     130        in      InletQ                  as power        (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true);
     131
     132        out     TI as control_signal    (Brief="Temperature  Indicator of Condenser", Protected = true, PosX=0.50, PosY=0);
     133        out     PI as control_signal    (Brief="Pressure  Indicator of Condenser", Protected = true, PosX=0.32, PosY=0);
     134
     135EQUATIONS
     136
     137"Molar Flow Balance"
     138        InletVapour.F = OutletLiquid.F;
     139
     140"Molar Composition Balance"
     141        InletVapour.z = OutletLiquid.z;
     142
     143"Energy Balance"
     144        InletVapour.F*InletVapour.h  + InletQ = OutletLiquid.F*OutletLiquid.h;
     145
     146"Pressure Drop"
     147        OutletLiquid.P = InletVapour.P - Pdrop;
     148
     149"Fake Temperature"
     150        OutletLiquid.T = Fake_Temperature;
     151
     152"Vapourisation Fraction"
     153        OutletLiquid.v = 0;
     154       
    92155"Temperature indicator"
    93156        TI * 'K' = OutletLiquid.T;
  • branches/gui/eml/stage_separators/tank.mso

    r831 r834  
    760760
    761761"Temperature indicator"
    762         TI * 'K' = OutletLiquid.T;
     762        TI * 'K' = OutletVapour.T;
    763763
    764764"Liquid Level"
Note: See TracChangeset for help on using the changeset viewer.