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

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

More flowsheet tests

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.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 455 2008-02-12 18:55:35Z paula $
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        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 packedStage_Test
99        PARAMETERS
100        PP      as Plugin(Brief="Physical Properties",
101                Type="PP",
102                Components = [ "n-pentane", "benzene"],
103                LiquidModel = "PR",
104                VapourModel = "PR"
105        );
106        NComp   as Integer;
107
108        SET
109        NComp = PP.NumberOfComponents;
110
111        VARIABLES
112        deltaP as Real (Unit='atm/m');
113       
114        DEVICES
115        t1 as packedStage_Billet;
116        feed as source;
117        inL as liquid_stream;
118        inV as vapour_stream;
119       
120        CONNECTIONS
121        feed.Outlet to t1.Inlet;
122        inL to t1.InletL;
123        inV to t1.InletV;
124
125        EQUATIONS
126        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
127
128        SPECIFY
129        feed.Outlet.F = 113.4 * 'kmol/h';
130        feed.Outlet.T = 291 * 'K';
131        feed.Outlet.P = 1.66 * 'atm';
132        feed.Outlet.z = [0.5, 0.5];
133
134        inL.F = 61.99 * 'kmol/h';       
135        inL.P = 1.63 * 'atm';
136        inL.T = 310 * 'K';
137        inL.z = [0.1641, 0.8359];
138
139        inV.F = 201.25 * 'kmol/h';
140        inV.P = 1.48 * 'atm';
141        inV.T = 321 * 'K';
142        inV.z = [0.0584, 0.9416];
143
144        t1.Emv = 1;
145        t1.hs = 0.4 * 'm';#0.075 * 'm';
146        t1.OutletV.F = 147.1 * 'kmol/h';
147#       t1.OutletL.F = 229.5 * 'kmol/h';
148        #t1.ksi = 0.805;
149       
150        SET
151        #Ceramic Pall Ring - nominal packing size 50 mm
152        t1.Q = 0 * 'kW';
153        t1.Across = 0.8 * 'm^2';
154        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
155        t1.ds = 1.009 * 'm';
156        t1.d = 50 * 'mm';
157        t1.C = 2.37;
158        t1.Cp = 0.662;
159        t1.e = 0.78;
160        t1.a = 120 * 'm^2/m^3';
161
162        INITIAL
163        t1.OutletL.T = 350 *'K';
164        t1.ML = 0.5 * 'mol';
165        t1.OutletL.z(1) = 0.2;
166       
167        OPTIONS
168        #InitialFile = "/home/paula/tray_Test.rlt";
169        #InitialFile = "/home/paula/packedStage_Test.rlt";
170        TimeStep = 2;   
171        TimeEnd = 50;
172end
173
174FlowSheet packedStage_BilletSchultes_Test
175        PARAMETERS
176        PP      as Plugin(Brief="Physical Properties",
177                Type="PP",
178                Components = [ "n-pentane", "benzene"],
179                LiquidModel = "PR",
180                VapourModel = "PR"
181        );
182        NComp   as Integer;
183
184        SET
185        NComp = PP.NumberOfComponents;
186
187        VARIABLES
188        deltaP as Real (Unit='atm/m');
189       
190        DEVICES
191        t1 as packedStage_BilletSchultes;
192        feed as source;
193        inL as liquid_stream;
194        inV as vapour_stream;
195       
196        CONNECTIONS
197        feed.Outlet to t1.Inlet;
198        inL to t1.InletL;
199        inV to t1.InletV;
200
201        EQUATIONS
202        deltaP = (t1.InletV.P - t1.OutletV.P)/t1.hs;
203
204        SPECIFY
205        feed.Outlet.F = 113.4 * 'kmol/h';
206        feed.Outlet.T = 291 * 'K';
207        feed.Outlet.P = 1.66 * 'atm';
208        feed.Outlet.z = [0.5, 0.5];
209
210        inL.F = 61.99 * 'kmol/h';       
211        inL.P = 1.63 * 'atm';
212        inL.T = 310 * 'K';
213        inL.z = [0.1641, 0.8359];
214
215        inV.F = 201.25 * 'kmol/h';
216        inV.P = 1.48 * 'atm';
217        inV.T = 321 * 'K';
218        inV.z = [0.0584, 0.9416];
219
220        t1.hs = 0.4 * 'm';#0.075 * 'm';
221#       t1.OutletV.F = 147.1 * 'kmol/h';
222#       t1.OutletL.F = 229.5 * 'kmol/h';
223#       t1.Qsio = 2.2;
224       
225        SET
226        #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999.
227        t1.Q = 0 * 'kW';
228        t1.Ap = 0.8 * 'm^2';
229        t1.V = 0.8 * 'm^2' * 0.4 * 'm';
230        t1.ds = 1.009 * 'm';
231        t1.Cpo = 0.763;
232        t1.e = 0.951;
233        t1.a = 112.6 * 'm^2/m^3';
234
235        INITIAL
236        t1.OutletL.T = 310 *'K';
237        t1.ML = 0.5 * 'mol';
238        t1.OutletL.z(1) = 0.05;
239       
240        OPTIONS
241        InitialFile = "packedStage_BilletSchultes_Test.rlt";
242        TimeStep = 2;   
243        TimeEnd = 50;
244end
Note: See TracBrowser for help on using the repository browser.