source: trunk/sample/stage_separators/sample_condenser.mso @ 335

Last change on this file since 335 was 313, checked in by Argimiro Resende Secchi, 16 years ago

Change name of outlet energy stream to OutletQ.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[86]1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*--------------------------------------------------------------------
16* Sample file for model condenser and condenserSteady
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_condenser.mso 313 2007-07-14 16:45:55Z arge $
24*--------------------------------------------------------------------*#
[1]25using "stage_separators/condenser";
26using "mixers_splitters/splitter";
27
28# condenser with splitter dividing liquid outlet
29FlowSheet condenser_Test
30        PARAMETERS
[213]31        PP      as Plugin(Brief="Physical Properties",
32                Type="PP",
33                Components = [ "isobutane", "benzene"],
34                LiquidModel = "PR",
35                VapourModel = "PR"
36        );
[1]37        NComp   as Integer;
38
39        VARIABLES
[310]40        Q       as energy_source (Brief="Heat supplied");
[1]41       
42        SET
43        NComp = PP.NumberOfComponents;
44       
45        DEVICES
46        c1 as condenser;
47        sp as splitter;
[202]48        s1 as source;
[1]49       
50        CONNECTIONS
[208]51        s1.Outlet to c1.InletV;
[1]52        c1.OutletL to sp.Inlet;
[313]53        Q.OutletQ to c1.InletQ;
[1]54       
55        SPECIFY
[202]56        s1.Outlet.P = 152 * 'kPa';
57        s1.Outlet.T = 298.6 * 'K';
58        s1.Outlet.F = 153 * 'kmol/h';
59        s1.Outlet.z = [0.664, 0.336];
[1]60       
61        sp.frac = 0.444445;
[202]62        c1.OutletV.F = 0 * 'kmol/h';
63        c1.OutletL.F = 153 * 'kmol/h';
[1]64
[313]65        Q.OutletQ.Q = -3.71e6 * 'kJ/h';
[1]66
67        SET
[202]68        c1.V = 2 * 'm^3';
69        c1.Across = 1 * 'm^2';
[1]70
71        INITIAL
[202]72        c1.OutletL.T = 280 *'K';
73        c1.Level = 1 * 'm';
[1]74        c1.OutletL.z(1) = 0.65;
75       
76        OPTIONS
[202]77        TimeEnd = 1000;
78        TimeStep = 20;
[1]79end
80
81FlowSheet condenserSteady_Test
82        PARAMETERS
[213]83        PP      as Plugin(Brief="Physical Properties",
84                Type="PP",
85                Components = [ "isobutane", "benzene"],
86                LiquidModel = "PR",
87                VapourModel = "PR"
88        );
[1]89        NComp   as Integer;
90
91        VARIABLES
[310]92        Q       as energy_source (Brief="Heat supplied");
[1]93       
94        SET
95        NComp = PP.NumberOfComponents;
96       
97        DEVICES
98        c1 as condenserSteady;
[202]99        s1 as source;
[1]100       
101        CONNECTIONS
[208]102        s1.Outlet to c1.InletV;
[313]103        Q.OutletQ to c1.InletQ;
[1]104       
105        SPECIFY
[202]106        s1.Outlet.P = 152 * 'kPa';
107        s1.Outlet.T = 298.6 * 'K';
108        s1.Outlet.F = 153 * 'kmol/h';
109        s1.Outlet.z = [0.664, 0.336];
[1]110
[313]111        Q.OutletQ.Q = 3.71e6 * 'kJ/h';
[202]112        c1.DP = 100 * 'kPa';
113
[1]114        OPTIONS
[202]115        Dynamic = false;
[1]116end
Note: See TracBrowser for help on using the repository browser.