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 514 2008-05-13 19:08:21Z 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 = 1; |
---|
76 | t1.alfa = 4; |
---|
77 | t1.Ap = 3.94 * 'ft^2'; |
---|
78 | |
---|
79 | t1.VapourFlowModel = "Feehery_Fv"; #"Roffel_Fv" "Klingberg" "Wang_Fv" "Elgue" or "Reepmeyer"-> default |
---|
80 | t1.w = 0.5 * '1/m^4'; |
---|
81 | |
---|
82 | t1.LiquidFlowModel = "Wang_Fl"; # "Feehery_Fl" "Roffel_Fl" "Olsen" or "default" |
---|
83 | |
---|
84 | INITIAL |
---|
85 | t1.OutletL.T = 290 *'K'; |
---|
86 | t1.Level = 0.9 * t1.hw; |
---|
87 | t1.OutletL.z(1) = 0.5; |
---|
88 | |
---|
89 | OPTIONS |
---|
90 | TimeEnd = 100; |
---|
91 | end |
---|
92 | |
---|
93 | FlowSheet packedStage_Test_1 |
---|
94 | PARAMETERS |
---|
95 | PP as Plugin(Brief="Physical Properties", |
---|
96 | Type="PP", |
---|
97 | Components = [ "n-pentane", "benzene"], |
---|
98 | LiquidModel = "PR", |
---|
99 | VapourModel = "PR" |
---|
100 | ); |
---|
101 | NComp as Integer; |
---|
102 | |
---|
103 | SET |
---|
104 | NComp = PP.NumberOfComponents; |
---|
105 | |
---|
106 | DEVICES |
---|
107 | t1 as packedStage; |
---|
108 | feed as source; |
---|
109 | inL as liquid_stream; |
---|
110 | inV as vapour_stream; |
---|
111 | |
---|
112 | CONNECTIONS |
---|
113 | feed.Outlet to t1.Inlet; |
---|
114 | inL to t1.InletL; |
---|
115 | inV to t1.InletV; |
---|
116 | |
---|
117 | SPECIFY |
---|
118 | feed.Outlet.F = 113.4 * 'kmol/h'; |
---|
119 | feed.Outlet.T = 291 * 'K'; |
---|
120 | feed.Outlet.P = 1.66 * 'atm'; |
---|
121 | feed.Outlet.z = [0.5, 0.5]; |
---|
122 | |
---|
123 | inL.P = 165 * 'kPa'; |
---|
124 | inL.T = 315 * 'K'; |
---|
125 | inL.F = 61.99 * 'kmol/h'; |
---|
126 | inL.z = [0.1641, 0.8359]; |
---|
127 | |
---|
128 | inV.F = 201.25 * 'kmol/h'; |
---|
129 | inV.P = 150 * 'kPa'; |
---|
130 | inV.T = 315 * 'K'; |
---|
131 | inV.z = [0.0584, 0.9416]; |
---|
132 | |
---|
133 | t1.OutletV.P = 145 * 'kPa'; |
---|
134 | |
---|
135 | SET |
---|
136 | #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. |
---|
137 | t1.Q = 0 * 'kW'; |
---|
138 | t1.V = 0.8 * 'm^2' * 0.4 * 'm'; |
---|
139 | t1.d = 1.009 * 'm'; |
---|
140 | t1.Cpo = 0.763; |
---|
141 | t1.e = 0.951; |
---|
142 | t1.a = 112.6 * 'm^2/m^3'; |
---|
143 | t1.hs = 0.4 * 'm'; |
---|
144 | t1.Qsil = 10; |
---|
145 | |
---|
146 | INITIAL |
---|
147 | t1.OutletL.T = 315 *'K'; |
---|
148 | t1.ML = 0.25 * 'kmol'; |
---|
149 | t1.OutletL.z(1) = 0.1641; |
---|
150 | |
---|
151 | OPTIONS |
---|
152 | DAESolver(File="sundials"); |
---|
153 | TimeStep = 0.001; |
---|
154 | TimeEnd = 0.1; |
---|
155 | end |
---|
156 | |
---|
157 | FlowSheet packedStage_Test_2 |
---|
158 | PARAMETERS |
---|
159 | PP as Plugin(Brief="Physical Properties", |
---|
160 | Type="PP", |
---|
161 | Components = [ "isobutane", "n-pentane", "propylene", |
---|
162 | "benzene", "isobutene" ], |
---|
163 | LiquidModel = "PR", |
---|
164 | VapourModel = "PR" |
---|
165 | ); |
---|
166 | NComp as Integer; |
---|
167 | |
---|
168 | SET |
---|
169 | NComp = PP.NumberOfComponents; |
---|
170 | |
---|
171 | DEVICES |
---|
172 | t1 as packedStage; |
---|
173 | feed as source; |
---|
174 | inL as liquid_stream; |
---|
175 | inV as vapour_stream; |
---|
176 | |
---|
177 | CONNECTIONS |
---|
178 | feed.Outlet to t1.Inlet; |
---|
179 | inL to t1.InletL; |
---|
180 | inV to t1.InletV; |
---|
181 | |
---|
182 | SPECIFY |
---|
183 | feed.Outlet.F = 0 * 'kmol/h'; |
---|
184 | feed.Outlet.T = 300 * 'K'; |
---|
185 | feed.Outlet.P = 1.66 * 'atm'; |
---|
186 | feed.Outlet.z = [0.226, 0.425, 0.035, 0.025, 0.289]; |
---|
187 | |
---|
188 | inL.F = 71.21 * 'kmol/h'; |
---|
189 | inL.P = 2.22 * 'atm'; |
---|
190 | inL.T = 297.6 * 'K'; |
---|
191 | inL.z = [0.226, 0.425, 0.035, 0.025, 0.289]; |
---|
192 | |
---|
193 | inV.F = 175.3 * 'kmol/h'; |
---|
194 | inV.P = 2.3062 * 'atm'; |
---|
195 | inV.T = 308.3 * 'K'; |
---|
196 | inV.z = [0.265, 0.233, 0.150, 0.014, 0.338]; |
---|
197 | |
---|
198 | t1.deltaP = 0.01 * 'atm'; |
---|
199 | |
---|
200 | SET |
---|
201 | #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. |
---|
202 | t1.Q = 0 * 'kW'; |
---|
203 | t1.Cpo = 0.763; |
---|
204 | t1.e = 0.951; |
---|
205 | t1.a = 112.6 * 'm^2/m^3'; |
---|
206 | |
---|
207 | t1.V = 4 * 'ft^2' * 1 * 'ft'; |
---|
208 | t1.hs = 1 * 'ft'; |
---|
209 | t1.d = 2.26 * 'ft'; |
---|
210 | t1.Qsil = 10; |
---|
211 | |
---|
212 | INITIAL |
---|
213 | t1.OutletL.T = 290 *'K'; |
---|
214 | t1.ML = 0.02 * 'kmol'; |
---|
215 | t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025]; |
---|
216 | |
---|
217 | OPTIONS |
---|
218 | DAESolver(File="sundials"); |
---|
219 | TimeStep = 10; |
---|
220 | TimeEnd = 100; |
---|
221 | end |
---|