source: trunk/sample/stage_separators/sample_tray.mso @ 522

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

merging tray versions.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.2 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 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 522 2008-05-21 23:21:12Z arge $
24*--------------------------------------------------------------------*#
25using "stage_separators/tray";
26
27FlowSheet 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;
91end
92
93FlowSheet 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;
155end
156
157FlowSheet 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;
221end
222
223FlowSheet trayRate_Test
224        PARAMETERS
225        PP      as Plugin(Brief="Physical Properties",
226                Type="PP",
227                Components = [ "n-pentane", "benzene"],
228                LiquidModel = "PR",
229                VapourModel = "PR"
230        );
231        NComp   as Integer;
232
233        SET
234        NComp = PP.NumberOfComponents;
235       
236        DEVICES
237        t1 as trayRate;
238        feed as source;
239        feedV as source;
240        inL as liquid_stream;
241        inV as vapour_stream;
242       
243        CONNECTIONS
244        feed.Outlet to t1.Inlet;
245        feedV.Outlet to t1.InletFV;
246        inL to t1.InletL;
247        inV to t1.InletV;
248       
249        SPECIFY
250        feed.Outlet.F = 116 * 'kmol/h';
251        feed.Outlet.T = 280 * 'K';
252        feed.Outlet.P = 150 * 'kPa';
253        feed.Outlet.z = [0.5, 0.5];
254
255        feedV.Outlet.F = 0 * 'kmol/h';
256        feedV.Outlet.T = 280 * 'K';
257        feedV.Outlet.P = 150 * 'atm';
258        feedV.Outlet.z = [0.5, 0.5];
259
260        inL.P = 150 * 'kPa';
261        inL.T = 290 * 'K';
262        inL.F = 90 * 'kmol/h';
263        inL.z = [0.1641, 0.8359];
264
265        inV.P = 150 * 'kPa';
266        inV.T = 500 * 'K';
267        inV.z = [0.0584, 0.9416];
268#       inV.F = 62 * 'kmol/h';
269
270        t1.OutletV.F = 120 * 'kmol/h';
271#       t1.OutletL.F = 120 * 'kmol/h';
272        t1.interf.a = 40 * 'm^2';
273        t1.interf.htL = 10.01 * 'kW/m^2/K';
274        t1.interf.htV = 0.025 * 'kW/m^2/K';
275        t1.interf.kL = 0.00933 * 'm/s';
276        t1.interf.kV = 0.000236 * 'm/s';
277
278        SET
279        t1.V = 4 * 'ft^3';
280        t1.Ah = 0.394 * 'ft^2';
281        t1.lw = 20.94 * 'in';
282        t1.hw = 0.125 * 'ft';
283        t1.beta = 0.6;
284        t1.alfa = 4;
285        t1.Ap = 3.94 * 'ft^2';
286        t1.Q = 0 * 'kW';
287
288        INITIAL
289        t1.OutletL.T = 295 *'K';
290        t1.OutletV.T = 290 *'K';
291        t1.Level = 0.9 * t1.hw;
292        t1.OutletL.z(1) = 0.5;
293        t1.OutletV.z(1) = 0.6;
294        t1.MV = 1.0*'mol' ;
295
296        OPTIONS
297        TimeStep = 0.1;
298        TimeEnd = 10;
299        TimeUnit = 's';
300        GuessFile = "trayRate_Test.rlt";
301end
Note: See TracBrowser for help on using the repository browser.