source: branches/newlanguage/sample/stage_separators/sample_condenser.mso @ 208

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

Fix more sample problems to new language.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 208 2007-03-15 05:18:39Z 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",File="vrpp");
32        NComp   as Integer;
33
34        VARIABLES
35        Q       as heat_rate (Brief="Heat supplied");
36       
37        SET
38        PP.Components = [ "isobutane", "benzene"];
39        PP.LiquidModel = "PR";
40        PP.VapourModel = "PR";
41        NComp = PP.NumberOfComponents;
42       
43        DEVICES
44        c1 as condenser;
45        sp as splitter;
46        s1 as source;
47       
48        CONNECTIONS
49        s1.Outlet to c1.InletV;
50        c1.OutletL to sp.Inlet;
51        Q to c1.Q;
52       
53        SPECIFY
54        s1.Outlet.P = 152 * 'kPa';
55        s1.Outlet.T = 298.6 * 'K';
56        s1.Outlet.F = 153 * 'kmol/h';
57        s1.Outlet.z = [0.664, 0.336];
58       
59        sp.frac = 0.444445;
60        c1.OutletV.F = 0 * 'kmol/h';
61        c1.OutletL.F = 153 * 'kmol/h';
62
63        Q = -3.71e6 * 'kJ/h';
64
65        SET
66        c1.V = 2 * 'm^3';
67        c1.Across = 1 * 'm^2';
68
69        INITIAL
70        c1.OutletL.T = 280 *'K';
71        c1.Level = 1 * 'm';
72        c1.OutletL.z(1) = 0.65;
73       
74        OPTIONS
75        TimeEnd = 1000;
76        TimeStep = 20;
77end
78
79FlowSheet condenserSteady_Test
80        PARAMETERS
81        PP      as Plugin(Brief="Physical Properties",File="vrpp");
82        NComp   as Integer;
83
84        VARIABLES
85        Q       as heat_rate (Brief="Heat supplied");
86       
87        SET
88        PP.Components = [ "isobutane", "benzene"];
89        PP.LiquidModel = "PR";
90        PP.VapourModel = "PR";
91        NComp = PP.NumberOfComponents;
92       
93        DEVICES
94        c1 as condenserSteady;
95        s1 as source;
96       
97        CONNECTIONS
98        s1.Outlet to c1.InletV;
99        Q to c1.Q;
100       
101        SPECIFY
102        s1.Outlet.P = 152 * 'kPa';
103        s1.Outlet.T = 298.6 * 'K';
104        s1.Outlet.F = 153 * 'kmol/h';
105        s1.Outlet.z = [0.664, 0.336];
106
107        Q = 3.71e6 * 'kJ/h';
108        c1.DP = 100 * 'kPa';
109
110        OPTIONS
111        Dynamic = false;
112end
Note: See TracBrowser for help on using the repository browser.