Changeset 877 for branches


Ignore:
Timestamp:
Nov 4, 2009, 12:25:16 PM (13 years ago)
Author:
mamuller
Message:

added very simple subcooling condenser model

File:
1 edited

Legend:

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

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