source: trunk/sample/stage_separators/sample_flash.mso @ 136

Last change on this file since 136 was 116, checked in by Paula Bettio Staudt, 16 years ago

removed an old comment

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 flash and flashSteady
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_flash.mso 116 2007-01-15 18:24:58Z paula $
24*--------------------------------------------------------------------*#
25using "stage_separators/flash";
26
27# exemplo baseado nos dados do artigo do Gani 1985.
28FlowSheet flash_Test
29        PARAMETERS
30        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
31        NComp   as Integer;
32
33        VARIABLES
34        Q       as heat_rate (Brief="Heat supplied");
35       
36        SET
37        PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];
38        PP.LiquidModel = "PR";
39        PP.VapourModel = "PR";
40        NComp = PP.NumberOfComponents;
41       
42        DEVICES
43        fl as flash;
44        s1 as streamTP;
45       
46        CONNECTIONS
47        s1 to fl.Inlet;
48        Q to fl.Q;
49       
50        EQUATIONS
51        fl.OutletL.F = 400*sqrt(fl.Level/"m") * "kmol/h";
52       
53        SPECIFY
54        s1.F = 496.3 * "kmol/h";
55        s1.T = 338 * "K";
56        s1.P = 507.1 * "kPa";
57        s1.z = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283];
58
59        fl.OutletV.F = 68.5 * "kmol/h";
60        Q = 1 * "kJ/h";
61       
62        SET
63        fl.V = 2000 * "m^3";
64        fl.Across = 1 * "m^2";
65       
66        INITIAL
67        fl.OutletL.T = 330 *"K";
68        fl.Level = 1 * "m";
69        fl.OutletL.z(1) = 0.1;
70        fl.OutletL.z(2) = 0.1;
71        fl.OutletL.z(3) = 0.1;
72        fl.OutletL.z(4) = 0.1;
73        fl.OutletL.z(5) = 0.1;
74       
75        OPTIONS
76        relativeAccuracy = 1e-7;
77        absoluteAccuracy = 1e-9;
78        #mode="steady";
79        time = [0:0.1:20]*"h";
80end
81
82# exemplo baseado nos dados do artigo do Gani 1985.
83FlowSheet flashSteady_Test
84        PARAMETERS
85        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
86        NComp   as Integer;
87
88        VARIABLES
89        Q       as heat_rate (Brief="Heat supplied");
90       
91        SET
92        PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"];
93        PP.LiquidModel = "PR";
94        PP.VapourModel = "PR";
95        NComp = PP.NumberOfComponents;
96       
97        DEVICES
98        fl as flash_Steady;
99        s1 as streamTP;
100       
101        CONNECTIONS
102        s1 to fl.Inlet;
103        Q to fl.Q;
104       
105       
106        SPECIFY
107        s1.F = 496.3 * "kmol/h";
108        s1.T = 338 * "K";
109        s1.P = 507.1 * "kPa";
110        #s1.v = 0.1380;
111        s1.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283];
112       
113        fl.OutletL.P = 2.5 * "atm";
114
115        #Q = 0 * "kJ/h";
116        fl.OutletL.T = 315.06 * "K";
117       
118        OPTIONS
119        mode = "steady";
120end
Note: See TracBrowser for help on using the repository browser.