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

Last change on this file since 313 was 313, checked in by Argimiro Resende Secchi, 15 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
Line 
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*--------------------------------------------------------------------*#
25using "stage_separators/condenser";
26using "mixers_splitters/splitter";
27
28# condenser with splitter dividing liquid outlet
29FlowSheet condenser_Test
30        PARAMETERS
31        PP      as Plugin(Brief="Physical Properties",
32                Type="PP",
33                Components = [ "isobutane", "benzene"],
34                LiquidModel = "PR",
35                VapourModel = "PR"
36        );
37        NComp   as Integer;
38
39        VARIABLES
40        Q       as energy_source (Brief="Heat supplied");
41       
42        SET
43        NComp = PP.NumberOfComponents;
44       
45        DEVICES
46        c1 as condenser;
47        sp as splitter;
48        s1 as source;
49       
50        CONNECTIONS
51        s1.Outlet to c1.InletV;
52        c1.OutletL to sp.Inlet;
53        Q.OutletQ to c1.InletQ;
54       
55        SPECIFY
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];
60       
61        sp.frac = 0.444445;
62        c1.OutletV.F = 0 * 'kmol/h';
63        c1.OutletL.F = 153 * 'kmol/h';
64
65        Q.OutletQ.Q = -3.71e6 * 'kJ/h';
66
67        SET
68        c1.V = 2 * 'm^3';
69        c1.Across = 1 * 'm^2';
70
71        INITIAL
72        c1.OutletL.T = 280 *'K';
73        c1.Level = 1 * 'm';
74        c1.OutletL.z(1) = 0.65;
75       
76        OPTIONS
77        TimeEnd = 1000;
78        TimeStep = 20;
79end
80
81FlowSheet condenserSteady_Test
82        PARAMETERS
83        PP      as Plugin(Brief="Physical Properties",
84                Type="PP",
85                Components = [ "isobutane", "benzene"],
86                LiquidModel = "PR",
87                VapourModel = "PR"
88        );
89        NComp   as Integer;
90
91        VARIABLES
92        Q       as energy_source (Brief="Heat supplied");
93       
94        SET
95        NComp = PP.NumberOfComponents;
96       
97        DEVICES
98        c1 as condenserSteady;
99        s1 as source;
100       
101        CONNECTIONS
102        s1.Outlet to c1.InletV;
103        Q.OutletQ to c1.InletQ;
104       
105        SPECIFY
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];
110
111        Q.OutletQ.Q = 3.71e6 * 'kJ/h';
112        c1.DP = 100 * 'kPa';
113
114        OPTIONS
115        Dynamic = false;
116end
Note: See TracBrowser for help on using the repository browser.