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 tray |
---|
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_tray.mso 498 2008-04-11 18:21:24Z paula $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "stage_separators/tray"; |
---|
26 | |
---|
27 | FlowSheet tray_Test |
---|
28 | PARAMETERS |
---|
29 | PP as Plugin(Brief="Physical Properties", |
---|
30 | Type="PP", |
---|
31 | Components = [ "n-pentane", "benzene"], |
---|
32 | LiquidModel = "PR", |
---|
33 | VapourModel = "PR" |
---|
34 | ); |
---|
35 | NComp as Integer; |
---|
36 | |
---|
37 | SET |
---|
38 | NComp = PP.NumberOfComponents; |
---|
39 | |
---|
40 | DEVICES |
---|
41 | t1 as tray; |
---|
42 | feed as source; |
---|
43 | inL as liquid_stream; |
---|
44 | inV as vapour_stream; |
---|
45 | |
---|
46 | CONNECTIONS |
---|
47 | feed.Outlet to t1.Inlet; |
---|
48 | inL to t1.InletL; |
---|
49 | inV to t1.InletV; |
---|
50 | |
---|
51 | SPECIFY |
---|
52 | feed.Outlet.F = 113.4 * 'kmol/h'; |
---|
53 | feed.Outlet.T = 291 * 'K'; |
---|
54 | feed.Outlet.P = 1.66 * 'atm'; |
---|
55 | feed.Outlet.z = [0.5, 0.5]; |
---|
56 | |
---|
57 | inL.P = 165 * 'kPa'; |
---|
58 | inL.T = 310 * 'K'; |
---|
59 | inL.F = 61.99 * 'kmol/h'; |
---|
60 | inL.z = [0.1641, 0.8359]; |
---|
61 | |
---|
62 | inV.P = 150 * 'kPa'; |
---|
63 | inV.T = 321 * 'K'; |
---|
64 | inV.z = [0.0584, 0.9416]; |
---|
65 | |
---|
66 | t1.Emv = 1; |
---|
67 | t1.OutletV.F = 147.1 * 'kmol/h'; |
---|
68 | |
---|
69 | SET |
---|
70 | t1.V = 4 * 'ft^3'; |
---|
71 | t1.Ah = 0.394 * 'ft^2'; |
---|
72 | t1.lw = 20.94 * 'in'; |
---|
73 | t1.hw = 0.125 * 'ft'; |
---|
74 | t1.Q = 0 * 'kW'; |
---|
75 | t1.beta = 0.6; |
---|
76 | t1.alfa = 4; |
---|
77 | t1.Ap = 3.94 * 'ft^2'; |
---|
78 | |
---|
79 | INITIAL |
---|
80 | t1.OutletL.T = 290 *'K'; |
---|
81 | t1.Level = 0.9 * t1.hw; |
---|
82 | t1.OutletL.z(1) = 0.5; |
---|
83 | |
---|
84 | OPTIONS |
---|
85 | TimeEnd = 100; |
---|
86 | end |
---|
87 | |
---|
88 | FlowSheet packedStage_Test_1 |
---|
89 | PARAMETERS |
---|
90 | PP as Plugin(Brief="Physical Properties", |
---|
91 | Type="PP", |
---|
92 | Components = [ "n-pentane", "benzene"], |
---|
93 | LiquidModel = "PR", |
---|
94 | VapourModel = "PR" |
---|
95 | ); |
---|
96 | NComp as Integer; |
---|
97 | |
---|
98 | SET |
---|
99 | NComp = PP.NumberOfComponents; |
---|
100 | |
---|
101 | DEVICES |
---|
102 | t1 as packedStage; |
---|
103 | feed as source; |
---|
104 | inL as liquid_stream; |
---|
105 | inV as vapour_stream; |
---|
106 | |
---|
107 | CONNECTIONS |
---|
108 | feed.Outlet to t1.Inlet; |
---|
109 | inL to t1.InletL; |
---|
110 | inV to t1.InletV; |
---|
111 | |
---|
112 | SPECIFY |
---|
113 | feed.Outlet.F = 113.4 * 'kmol/h'; |
---|
114 | feed.Outlet.T = 291 * 'K'; |
---|
115 | feed.Outlet.P = 1.66 * 'atm'; |
---|
116 | feed.Outlet.z = [0.5, 0.5]; |
---|
117 | |
---|
118 | inL.P = 165 * 'kPa'; |
---|
119 | inL.T = 315 * 'K'; |
---|
120 | inL.F = 61.99 * 'kmol/h'; |
---|
121 | inL.z = [0.1641, 0.8359]; |
---|
122 | |
---|
123 | inV.F = 201.25 * 'kmol/h'; |
---|
124 | inV.P = 150 * 'kPa'; |
---|
125 | inV.T = 315 * 'K'; |
---|
126 | inV.z = [0.0584, 0.9416]; |
---|
127 | |
---|
128 | t1.OutletV.P = 145 * 'kPa'; |
---|
129 | |
---|
130 | SET |
---|
131 | #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. |
---|
132 | t1.Q = 0 * 'kW'; |
---|
133 | t1.V = 0.8 * 'm^2' * 0.4 * 'm'; |
---|
134 | t1.d = 1.009 * 'm'; |
---|
135 | t1.Cpo = 0.763; |
---|
136 | t1.e = 0.951; |
---|
137 | t1.a = 112.6 * 'm^2/m^3'; |
---|
138 | t1.hs = 0.4 * 'm'; |
---|
139 | t1.Qsil = 10; |
---|
140 | |
---|
141 | INITIAL |
---|
142 | t1.OutletL.T = 315 *'K'; |
---|
143 | t1.ML = 0.25 * 'kmol'; |
---|
144 | t1.OutletL.z(1) = 0.1641; |
---|
145 | |
---|
146 | OPTIONS |
---|
147 | DAESolver(File="sundials"); |
---|
148 | TimeStep = 0.001; |
---|
149 | TimeEnd = 0.1; |
---|
150 | end |
---|
151 | |
---|
152 | FlowSheet packedStage_Test_2 |
---|
153 | PARAMETERS |
---|
154 | PP as Plugin(Brief="Physical Properties", |
---|
155 | Type="PP", |
---|
156 | Components = [ "isobutane", "n-pentane", "propylene", |
---|
157 | "benzene", "isobutene" ], |
---|
158 | LiquidModel = "PR", |
---|
159 | VapourModel = "PR" |
---|
160 | ); |
---|
161 | NComp as Integer; |
---|
162 | |
---|
163 | SET |
---|
164 | NComp = PP.NumberOfComponents; |
---|
165 | |
---|
166 | DEVICES |
---|
167 | t1 as packedStage; |
---|
168 | feed as source; |
---|
169 | inL as liquid_stream; |
---|
170 | inV as vapour_stream; |
---|
171 | |
---|
172 | CONNECTIONS |
---|
173 | feed.Outlet to t1.Inlet; |
---|
174 | inL to t1.InletL; |
---|
175 | inV to t1.InletV; |
---|
176 | |
---|
177 | SPECIFY |
---|
178 | feed.Outlet.F = 0 * 'kmol/h'; |
---|
179 | feed.Outlet.T = 300 * 'K'; |
---|
180 | feed.Outlet.P = 1.66 * 'atm'; |
---|
181 | feed.Outlet.z = [0.226, 0.425, 0.035, 0.025, 0.289]; |
---|
182 | |
---|
183 | inL.F = 71.21 * 'kmol/h'; |
---|
184 | inL.P = 2.22 * 'atm'; |
---|
185 | inL.T = 297.6 * 'K'; |
---|
186 | inL.z = [0.226, 0.425, 0.035, 0.025, 0.289]; |
---|
187 | |
---|
188 | inV.F = 175.3 * 'kmol/h'; |
---|
189 | inV.P = 2.3062 * 'atm'; |
---|
190 | inV.T = 308.3 * 'K'; |
---|
191 | inV.z = [0.265, 0.233, 0.150, 0.014, 0.338]; |
---|
192 | |
---|
193 | t1.deltaP = 0.01 * 'atm'; |
---|
194 | |
---|
195 | SET |
---|
196 | #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. |
---|
197 | t1.Q = 0 * 'kW'; |
---|
198 | t1.Cpo = 0.763; |
---|
199 | t1.e = 0.951; |
---|
200 | t1.a = 112.6 * 'm^2/m^3'; |
---|
201 | |
---|
202 | t1.V = 4 * 'ft^2' * 1 * 'ft'; |
---|
203 | t1.hs = 1 * 'ft'; |
---|
204 | t1.d = 2.26 * 'ft'; |
---|
205 | t1.Qsil = 10; |
---|
206 | |
---|
207 | INITIAL |
---|
208 | t1.OutletL.T = 290 *'K'; |
---|
209 | t1.ML = 0.02 * 'kmol'; |
---|
210 | t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025]; |
---|
211 | |
---|
212 | OPTIONS |
---|
213 | DAESolver(File="sundials"); |
---|
214 | TimeStep = 10; |
---|
215 | TimeEnd = 100; |
---|
216 | end |
---|