source: branches/packed/sample/stage_separators/sample_tray.mso @ 674

Last change on this file since 674 was 498, checked in by Paula Bettio Staudt, 15 years ago

First official version of packed stage and packed column with samples

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 11.0 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 498 2008-04-11 18:21:24Z paula $
24*--------------------------------------------------------------------*#
25using "stage_separators/tray";
26
27FlowSheet tray_Test_1
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        VARIABLES
41        deltaP as pressure;
42        phiL as Real;
43       
44        DEVICES
45        t1 as tray;
46        feed as source;
47        inL as liquid_stream;
48        inV as vapour_stream;
49       
50        CONNECTIONS
51        feed.Outlet to t1.Inlet;
52        inL to t1.InletL;
53        inV to t1.InletV;
54       
55        EQUATIONS
56        deltaP = t1.InletV.P - t1.OutletV.P;
57        phiL = t1.ML*t1.vL / t1.V;
58       
59        SPECIFY
60        feed.Outlet.F = 113.4 * 'kmol/h';
61        feed.Outlet.T = 291 * 'K';
62        feed.Outlet.P = 1.66 * 'atm';
63        feed.Outlet.z = [0.5, 0.5];
64       
65        inL.P = 165 * 'kPa';
66        inL.T = 310 * 'K';
67        inL.F = 61.99 * 'kmol/h';
68        inL.z = [0.1641, 0.8359];
69
70        inV.P = 150 * 'kPa';
71        inV.T = 321 * 'K';
72        inV.z = [0.0584, 0.9416];
73
74        t1.Emv = 1;
75        t1.OutletV.F = 147.1 * 'kmol/h';
76
77        SET
78        t1.V = 4 * 'ft^3';
79        t1.Ah = 0.394 * 'ft^2';
80        t1.lw = 20.94 * 'in';
81        t1.hw = 0.125 * 'ft';
82        t1.Q = 0 * 'kW';
83        t1.beta = 0.6;
84        t1.alfa = 4;
85        t1.Ap = 3.94 * 'ft^2';
86       
87        INITIAL
88        t1.OutletL.T = 320 *'K';
89        t1.Level = 1.2 * t1.hw;
90        t1.OutletL.z(1) = 0.5;
91       
92        OPTIONS
93        InitialFile = "/home/paula/tray_Test.rlt";
94        TimeStep = 10;
95        TimeEnd = 100;
96end
97
98FlowSheet tray_Test_2
99        PARAMETERS
100        PP      as Plugin(Brief="Physical Properties",
101                Type="PP",
102                Components = [ "isobutane", "n-pentane", "propylene",
103                "benzene", "isobutene" ],
104                LiquidModel = "PR",
105                VapourModel = "PR"
106        );
107        NComp   as Integer;
108
109        SET
110        NComp = PP.NumberOfComponents;
111       
112        VARIABLES
113        deltaP as pressure (Lower=-10);
114        phiL as volume;
115       
116        DEVICES
117        t1 as tray;
118        feed as source;
119        inL as liquid_stream;
120        inV as vapour_stream;
121       
122        CONNECTIONS
123        feed.Outlet to t1.Inlet;
124        inL to t1.InletL;
125        inV to t1.InletV;
126       
127        EQUATIONS
128        deltaP = t1.InletV.P - t1.OutletV.P;
129        phiL = t1.ML*t1.vL;
130       
131        SPECIFY
132        feed.Outlet.F = 0 * 'kmol/h';
133        feed.Outlet.T = 300 * 'K';
134        feed.Outlet.P = 1.66 * 'atm';
135        feed.Outlet.z = [0.2, 0.2, 0.2, 0.2, 0.2];
136       
137        inL.P = 2.22 * 'atm';
138        inL.T = 297.6 * 'K';
139        inL.F = 71.21 * 'kmol/h';
140        inL.z = [0.226, 0.425, 0.035, 0.025, 0.289];
141
142        #inV.F = 175.3 * 'kmol/h';
143        inV.P = 2.3062 * 'atm';
144        inV.T = 308.3 * 'K';
145        inV.z = [0.265, 0.233, 0.150, 0.014, 0.338];
146
147        t1.OutletV.F = 178 * 'kmol/h';
148        t1.Emv = 1;
149
150        SET
151        t1.V = 4 * 'ft^3';
152        t1.Ah = 0.394 * 'ft^2';
153        t1.lw = 20.94 * 'in';
154        t1.hw = 0.125 * 'ft';
155        t1.Q = 0 * 'kW';
156        t1.beta = 0.6;
157        t1.alfa = 4;
158        t1.Ap = 3.94 * 'ft^2';
159       
160        INITIAL
161        t1.OutletL.T = 304 *'K';
162        t1.Level = 1.2 * t1.hw;
163        t1.OutletL.z([1:4]) = [0.2, 0.2, 0.2, 0.2];
164       
165        OPTIONS
166        #InitialFile = "/home/paula/tray_Test.rlt";
167        TimeStep = 10;
168        TimeEnd = 100;
169end
170
171#to compare with tray_Test_1
172FlowSheet packedStage_BilletSchultes_Test_1
173        PARAMETERS
174        PP      as Plugin(Brief="Physical Properties",
175                Type="PP",
176                Components = [ "n-pentane", "benzene"],
177                LiquidModel = "PR",
178                VapourModel = "PR"
179        );
180        NComp   as Integer;
181
182        SET
183        NComp = PP.NumberOfComponents;
184       
185        VARIABLES
186        deltaP as Real (Unit='atm/m');
187       
188        DEVICES
189        t1 as packedStage_BilletSchultes;
190        feed as source;
191        inL as liquid_stream;
192        inV as vapour_stream;
193       
194        CONNECTIONS
195        feed.Outlet to t1.Inlet;
196        inL to t1.InletL;
197        inV to t1.InletV;
198
199        EQUATIONS
200        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
201       
202        SPECIFY
203        feed.Outlet.F = 113.4 * 'kmol/h';
204        feed.Outlet.T = 291 * 'K';
205        feed.Outlet.P = 1.66 * 'atm';
206        feed.Outlet.z = [0.5, 0.5];
207       
208        inL.P = 165 * 'kPa';
209        inL.T = 310 * 'K';
210        inL.F = 61.99 * 'kmol/h';
211        inL.z = [0.1641, 0.8359];
212
213        inV.F = 201.25 * 'kmol/h';
214        inV.P = 150 * 'kPa';
215        inV.T = 321 * 'K';
216        inV.z = [0.0584, 0.9416];
217
218        SET
219        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
220        t1.Q = 0 * 'kW';
221        t1.Ap = 0.8 * 'm^2';
222        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
223        t1.ds = 1.009 * 'm';
224        t1.Cpo = 0.763;
225        t1.e = 0.951;
226        t1.a = 112.6 * 'm^2/m^3';
227        t1.hs = 0.4 * 'm';
228        t1.Qsio = 1;
229       
230        INITIAL
231        t1.OutletL.T = 320 *'K';
232        t1.ML = 0.25 * 'kmol';
233        t1.OutletL.z(1) = 0.5;
234       
235        OPTIONS
236        InitialFile = "packedStage_BilletSchultes_Test_1.rlt";
237        DAESolver(File="sundials");
238        TimeStep = 100;
239        TimeEnd = 1000;
240end
241
242#to compare with tray_Test_2
243FlowSheet packedStage_BilletSchultes_Test_2
244        PARAMETERS
245        PP      as Plugin(Brief="Physical Properties",
246                Type="PP",
247                Components = [ "isobutane", "n-pentane", "propylene",
248                "benzene", "isobutene" ],
249                LiquidModel = "PR",
250                VapourModel = "PR"
251        );
252        NComp   as Integer;
253
254        SET
255        NComp = PP.NumberOfComponents;
256
257        VARIABLES
258        deltaP as Real (Unit='atm/m');
259        phiL as volume;
260       
261        DEVICES
262        t1 as packedStage_BilletSchultes;
263        feed as source;
264        inL as liquid_stream;
265        inV as vapour_stream;
266       
267        CONNECTIONS
268        feed.Outlet to t1.Inlet;
269        inL to t1.InletL;
270        inV to t1.InletV;
271
272        EQUATIONS
273        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
274        phiL = t1.vL * t1.ML;
275
276        SPECIFY
277        feed.Outlet.F = 0 * 'kmol/h';
278        feed.Outlet.T = 300 * 'K';
279        feed.Outlet.P = 1.66 * 'atm';
280        feed.Outlet.z = [0.2, 0.2, 0.2, 0.2, 0.2];
281
282        inL.F = 71.21 * 'kmol/h';       
283        inL.P = 2.22 * 'atm';
284        inL.T = 297.6 * 'K';
285        inL.z = [0.226, 0.425, 0.035, 0.025, 0.289];
286
287        inV.F = 175.3 * 'kmol/h';
288        inV.P = 2.3062 * 'atm';
289        inV.T = 308.3 * 'K';
290        inV.z = [0.265, 0.233, 0.150, 0.014, 0.338];
291       
292        #t1.OutletV.F = 177.9 * 'kmol/h';
293
294        SET
295        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
296        t1.Q = 0 * 'kW';
297        #t1.Ap = 0.8 * 'm^2';
298        #t1.V = 0.8 * 'm^2' * 0.4 * 'm';
299#       t1.ds = 1.009 * 'm';
300        t1.Cpo = 0.763;
301        t1.e = 0.951;
302        t1.a = 112.6 * 'm^2/m^3';
303#       t1.hs = 0.4 * 'm';
304        t1.Qsio = 1;
305
306        t1.V = 4 * 'ft^2' * 1 * 'ft';
307        t1.Ap = 4 * 'ft^2';
308        t1.hs = 1 * 'ft';
309        t1.ds = 2.26 * 'ft';
310
311        INITIAL
312        t1.OutletL.T = 304 *'K';
313        t1.ML = 0.18 * 'kmol';
314        t1.OutletL.z([1:4]) = [0.2, 0.2, 0.2, 0.2];
315       
316        OPTIONS
317        DAESolver(File="sundials");
318        #InitialFile = "packedStage_BilletSchultes_Test.rlt";
319        InitialFile = "/home/paula/tray_Test_2.rlt";
320        TimeStep = 5;   
321        TimeEnd = 60;
322end
323
324#to compare with tray_Test_1
325FlowSheet packedStage_Test_1
326        PARAMETERS
327        PP      as Plugin(Brief="Physical Properties",
328                Type="PP",
329                Components = [ "n-pentane", "benzene"],
330                LiquidModel = "PR",
331                VapourModel = "PR"
332        );
333        NComp   as Integer;
334
335        SET
336        NComp = PP.NumberOfComponents;
337       
338        VARIABLES
339        deltaP as Real (Unit='atm/m');
340       
341        DEVICES
342        t1 as packedStage;
343        feed as source;
344        inL as liquid_stream;
345        inV as vapour_stream;
346       
347        CONNECTIONS
348        feed.Outlet to t1.Inlet;
349        inL to t1.InletL;
350        inV to t1.InletV;
351
352        EQUATIONS
353        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
354       
355        SPECIFY
356        feed.Outlet.F = 113.4 * 'kmol/h';
357        feed.Outlet.T = 291 * 'K';
358        feed.Outlet.P = 1.66 * 'atm';
359        feed.Outlet.z = [0.5, 0.5];
360       
361        inL.P = 165 * 'kPa';
362        inL.T = 315 * 'K'; #310 * 'K';
363        inL.F = 61.99 * 'kmol/h';
364        inL.z = [0.1641, 0.8359];#[0.5, 0.5];#
365
366        inV.F = 201.25 * 'kmol/h';
367        inV.P = 150 * 'kPa';
368        inV.T = 315 * 'K'; #321 * 'K';
369        inV.z = [0.0584, 0.9416];#[0.5, 0.5];#
370       
371        t1.OutletV.P = 145 * 'kPa';
372        #t1.OutletV.F = 190 * 'kmol/h';
373       
374        SET
375        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
376        t1.Q = 0 * 'kW';
377        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
378        t1.d = 1.009 * 'm';
379        t1.Cpo = 0.763;
380        t1.e = 0.951;
381        t1.a = 112.6 * 'm^2/m^3';
382        t1.hs = 0.4 * 'm';
383        t1.Qsil = 10;
384       
385        INITIAL
386        t1.OutletL.T = 315 *'K';
387        t1.ML = 0.25 * 'kmol';
388        t1.OutletL.z(1) = 0.1641;
389       
390        OPTIONS
391        DAESolver(File="sundials");
392        TimeStep = 0.001;
393        TimeEnd = 0.1;
394end
395
396#to compare with tray_Test_2
397FlowSheet packedStage_Test_2
398        PARAMETERS
399        PP      as Plugin(Brief="Physical Properties",
400                Type="PP",
401                Components = [ "isobutane", "n-pentane", "propylene",
402                "benzene", "isobutene" ],
403                LiquidModel = "PR",
404                VapourModel = "PR"
405        );
406        NComp   as Integer;
407
408        SET
409        NComp = PP.NumberOfComponents;
410
411        VARIABLES
412        deltaP as Real (Unit='atm/m'); #(Unit='inH2O/m*mm/in');
413        phiL as Real;
414       
415        DEVICES
416        t1 as packedStage;
417        feed as source;
418        inL as liquid_stream;
419        inV as vapour_stream;
420       
421        CONNECTIONS
422        feed.Outlet to t1.Inlet;
423        inL to t1.InletL;
424        inV to t1.InletV;
425
426        EQUATIONS
427        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
428        phiL = t1.vL * t1.ML/t1.V;
429
430        SPECIFY
431        feed.Outlet.F = 0 * 'kmol/h';
432        feed.Outlet.T = 300 * 'K';
433        feed.Outlet.P = 1.66 * 'atm';
434        feed.Outlet.z = [0.226, 0.425, 0.035, 0.025, 0.289];
435
436        inL.F = 71.21 * 'kmol/h';       
437        inL.P = 2.22 * 'atm';
438        inL.T = 297.6 * 'K';
439        inL.z = [0.226, 0.425, 0.035, 0.025, 0.289];
440
441        inV.F = 175.3 * 'kmol/h';
442        inV.P = 2.3062 * 'atm';
443        inV.T = 308.3 * 'K';
444        inV.z = [0.265, 0.233, 0.150, 0.014, 0.338];
445       
446        t1.deltaP = 0.01 * 'atm';
447        #t1.OutletV.F = 165 * 'kmol/h';
448       
449        SET
450        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
451        t1.Q = 0 * 'kW';
452        #t1.Ap = 0.8 * 'm^2';
453        #t1.V = 0.8 * 'm^2' * 0.4 * 'm';
454#       t1.ds = 1.009 * 'm';
455        t1.Cpo = 0.763;
456        t1.e = 0.951;
457        t1.a = 112.6 * 'm^2/m^3';
458#       t1.hs = 0.4 * 'm';
459
460        t1.V = 4 * 'ft^2' * 1 * 'ft';
461        t1.hs = 1 * 'ft';
462        t1.d = 2.26 * 'ft';
463        t1.Qsil = 10;
464
465        INITIAL
466        t1.OutletL.T = 290 *'K';
467        t1.ML = 0.02 * 'kmol';
468        t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025]; #[0.022, 0.0425, 0.0035, 0.95];
469       
470        OPTIONS
471        DAESolver(File="sundials");
472        #InitialFile = "/home/paula/tray_Test_2.rlt";
473        TimeStep = 10;
474        TimeEnd = 100;
475end
476
477FlowSheet packedStageAirWater_Test
478        PARAMETERS
479        PP      as Plugin(Brief="Physical Properties",
480                Type="PP",
481                Components = [ "nitrogen", "water"],
482                LiquidModel = "IdealLiquid",
483                VapourModel = "Ideal"
484        );
485        NComp   as Integer;
486
487        SET
488        NComp = PP.NumberOfComponents;
489
490        VARIABLES
491        deltaP as Real (Unit='inH2O/m*mm/in');
492       
493        DEVICES
494        t1 as packedStage_AirWater;
495        feed as source;
496        inL as liquid_stream;
497        inV as vapour_stream;
498       
499        CONNECTIONS
500        feed.Outlet to t1.Inlet;
501        inL to t1.InletL;
502        inV to t1.InletV;
503
504        EQUATIONS
505        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
506
507        SPECIFY
508        feed.Outlet.F = 0 * 'kmol/h';
509        feed.Outlet.T = 293 * 'K';
510        feed.Outlet.P = 1 * 'atm';
511        feed.Outlet.z = [0 1];
512
513        inL.F = 100 * 'kmol/h'; #71.21 * 'kmol/h';     
514        inL.P = 1 * 'atm';
515        inL.T = 293 * 'K';
516        inL.z = [0 1];
517
518        inV.F = 175.3 * 'kmol/h';
519        inV.P = 1.1 * 'atm';
520        inV.T = 295 * 'K';
521        inV.z = [1 0];
522       
523        t1.OutletV.P = 1.08 * 'atm';
524       
525        SET
526        #Metal Bialecki Ring - nominal packing size 25 mm - Billet and Schultes, 1999.
527        t1.Cpo = 0.891;
528        t1.Ch = 0.692;
529        t1.e = 0.956;
530        t1.a = 210 * 'm^2/m^3';
531
532        t1.Q = 0 * 'kW';
533        t1.V = 0.018 * 'm^2' * 1.4 * 'm';
534        t1.Ap = 0.018 * 'm^2';
535        t1.hs = 1.4 * 'm';
536        t1.ds = 0.15 * 'm';
537
538        INITIAL
539        t1.OutletL.T = 293 *'K';
540        t1.ML = 0.002 * 'kmol';
541       
542        OPTIONS
543        #InitialFile = "/home/paula/packedStageAirWater_Test.rlt";
544        DAESolver(File="dassl");
545        TimeStep = 10;
546        TimeEnd = 100;
547end
Note: See TracBrowser for help on using the repository browser.