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

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

Fixing examples.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.1 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 856 2009-10-09 04:39:52Z 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.F = 113.4 * 'kmol/h';
53        feed.T = 291 * 'K';
54        feed.P = 1.66 * 'atm';
55        feed.Composition = [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        DAESolver(File="dassl");
92end
93
94FlowSheet packedStage_Test_1
95        PARAMETERS
96        PP      as Plugin(Brief="Physical Properties",
97                Type="PP",
98                Components = [ "n-pentane", "benzene"],
99                LiquidModel = "PR",
100                VapourModel = "PR"
101        );
102        NComp   as Integer;
103
104        SET
105        NComp = PP.NumberOfComponents;
106       
107        DEVICES
108        t1 as packedStage;
109        feed as source;
110        inL as liquid_stream;
111        inV as vapour_stream;
112       
113        CONNECTIONS
114        feed.Outlet to t1.Inlet;
115        inL to t1.InletL;
116        inV to t1.InletV;
117
118        SPECIFY
119        feed.F = 113.4 * 'kmol/h';
120        feed.T = 291 * 'K';
121        feed.P = 1.66 * 'atm';
122        feed.Composition = [0.5, 0.5];
123       
124        inL.P = 165 * 'kPa';
125        inL.T = 315 * 'K';
126        inL.F = 61.99 * 'kmol/h';
127        inL.z = [0.1641, 0.8359];
128
129        inV.F = 201.25 * 'kmol/h';
130        inV.P = 150 * 'kPa';
131        inV.T = 315 * 'K';
132        inV.z = [0.0584, 0.9416];
133       
134#       t1.OutletV.P = 145 * 'kPa';
135       
136        SET
137        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
138        t1.Q = 0 * 'kW';
139        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
140        t1.d = 1.009 * 'm';
141#       t1.Cpo = 0.763;
142        t1.e = 0.951;
143        t1.a = 112.6 * 'm^2/m^3';
144        t1.hs = 0.4 * 'm';
145        t1.Qsil = 10;
146       
147        INITIAL
148        t1.OutletL.T = 315 *'K';
149        t1.ML = 0.25 * 'kmol';
150        t1.OutletL.z(1) = 0.1641;
151       
152        OPTIONS
153        DAESolver(File="sundials");
154        TimeStep = 0.001;
155        TimeEnd = 0.1;
156end
157
158FlowSheet packedStage_Test_2
159        PARAMETERS
160        PP      as Plugin(Brief="Physical Properties",
161                Type="PP",
162                Components = [ "isobutane", "n-pentane", "propylene",
163                "benzene", "isobutene" ],
164                LiquidModel = "PR",
165                VapourModel = "PR"
166        );
167        NComp   as Integer;
168
169        SET
170        NComp = PP.NumberOfComponents;
171
172        DEVICES
173        t1 as packedStage;
174        feed as source;
175        inL as liquid_stream;
176        inV as vapour_stream;
177       
178        CONNECTIONS
179        feed.Outlet to t1.Inlet;
180        inL to t1.InletL;
181        inV to t1.InletV;
182
183        SPECIFY
184        feed.F = 0 * 'kmol/h';
185        feed.T = 300 * 'K';
186        feed.P = 1.66 * 'atm';
187        feed.Composition = [0.226, 0.425, 0.035, 0.025, 0.289];
188
189        inL.F = 71.21 * 'kmol/h';       
190        inL.P = 2.22 * 'atm';
191        inL.T = 297.6 * 'K';
192        inL.z = [0.226, 0.425, 0.035, 0.025, 0.289];
193
194        inV.F = 175.3 * 'kmol/h';
195        inV.P = 2.3062 * 'atm';
196        inV.T = 308.3 * 'K';
197        inV.z = [0.265, 0.233, 0.150, 0.014, 0.338];
198       
199#       t1.deltaP = 0.01 * 'atm';
200       
201        SET
202        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
203        t1.Q = 0 * 'kW';
204#       t1.Cpo = 0.763;
205        t1.e = 0.951;
206        t1.a = 112.6 * 'm^2/m^3';
207
208        t1.V = 4 * 'ft^2' * 1 * 'ft';
209        t1.hs = 1 * 'ft';
210        t1.d = 2.26 * 'ft';
211        t1.Qsil = 10;
212
213        INITIAL
214        t1.OutletL.T = 290 *'K';
215        t1.ML = 0.02 * 'kmol';
216        t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025];
217       
218        OPTIONS
219        DAESolver(File="sundials");
220        TimeStep = 10;
221        TimeEnd = 100;
222end
223
224FlowSheet trayRate_Test
225        PARAMETERS
226        PP      as Plugin(Brief="Physical Properties",
227                Type="PP",
228                Components = [ "n-pentane", "benzene"],
229                LiquidModel = "PR",
230                VapourModel = "PR"
231        );
232        NComp   as Integer;
233
234        SET
235        NComp = PP.NumberOfComponents;
236       
237        DEVICES
238        t1 as trayRate;
239        feed as source;
240        feedV as source;
241        inL as liquid_stream;
242        inV as vapour_stream;
243       
244        CONNECTIONS
245        feed.Outlet to t1.Inlet;
246        feedV.Outlet to t1.InletFV;
247        inL to t1.InletL;
248        inV to t1.InletV;
249       
250        SPECIFY
251        feed.F = 116 * 'kmol/h';
252        feed.T = 280 * 'K';
253        feed.P = 150 * 'kPa';
254        feed.Composition = [0.5, 0.5];
255
256        feedV.F = 0 * 'kmol/h';
257        feedV.T = 280 * 'K';
258        feedV.P = 150 * 'atm';
259        feedV.Composition = [0.5, 0.5];
260
261        inL.P = 150 * 'kPa';
262        inL.T = 290 * 'K';
263        inL.F = 90 * 'kmol/h';
264        inL.z = [0.1641, 0.8359];
265
266        inV.P = 150 * 'kPa';
267        inV.T = 500 * 'K';
268        inV.z = [0.0584, 0.9416];
269#       inV.F = 62 * 'kmol/h';
270
271        t1.OutletV.F = 120 * 'kmol/h';
272#       t1.OutletL.F = 120 * 'kmol/h';
273        t1.interf.a = 40 * 'm^2';
274        t1.interf.htL = 10.01 * 'kW/m^2/K';
275        t1.interf.htV = 0.025 * 'kW/m^2/K';
276        t1.interf.kL = 0.00933 * 'm/s';
277        t1.interf.kV = 0.000236 * 'm/s';
278
279        SET
280        t1.V = 4 * 'ft^3';
281        t1.Ah = 0.394 * 'ft^2';
282        t1.lw = 20.94 * 'in';
283        t1.hw = 0.125 * 'ft';
284        t1.beta = 0.6;
285        t1.alfa = 4;
286        t1.Ap = 3.94 * 'ft^2';
287        t1.Q = 0 * 'kW';
288
289        INITIAL
290        t1.OutletL.T = 295 *'K';
291        t1.OutletV.T = 290 *'K';
292        t1.Level = 0.9 * t1.hw;
293        t1.OutletL.z(1) = 0.5;
294        t1.OutletV.z(1) = 0.6;
295        t1.MV = 1.0*'mol' ;
296
297        OPTIONS
298        TimeStep = 0.1;
299        TimeEnd = 10;
300        TimeUnit = 's';
301        GuessFile = "trayRate_Test.rlt";
302end
Note: See TracBrowser for help on using the repository browser.