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 flash and flashSteady |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Paula B. Staudt |
---|
23 | * $Id: sample_flash.mso 313 2007-07-14 16:45:55Z arge $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "stage_separators/flash"; |
---|
26 | |
---|
27 | # exemplo baseado nos dados do artigo do Gani 1985. |
---|
28 | FlowSheet flash_Test |
---|
29 | PARAMETERS |
---|
30 | PP as Plugin(Brief="Physical Properties", |
---|
31 | Type="PP", |
---|
32 | Components = ["1,3-butadiene", "isobutene", "n-pentane", |
---|
33 | "1-pentene", "1-hexene", "benzene"], |
---|
34 | LiquidModel = "PR", |
---|
35 | VapourModel = "PR" |
---|
36 | ); |
---|
37 | NComp as Integer; |
---|
38 | |
---|
39 | VARIABLES |
---|
40 | Q as energy_source (Brief="Heat supplied"); |
---|
41 | |
---|
42 | SET |
---|
43 | NComp = PP.NumberOfComponents; |
---|
44 | |
---|
45 | DEVICES |
---|
46 | fl as flash; |
---|
47 | s1 as source; |
---|
48 | |
---|
49 | CONNECTIONS |
---|
50 | s1.Outlet to fl.Inlet; |
---|
51 | Q.OutletQ to fl.InletQ; |
---|
52 | |
---|
53 | EQUATIONS |
---|
54 | fl.OutletL.F = 400*sqrt(fl.Level/'m') * 'kmol/h'; |
---|
55 | |
---|
56 | SPECIFY |
---|
57 | s1.Outlet.F = 496.3 * 'kmol/h'; |
---|
58 | s1.Outlet.T = 338 * 'K'; |
---|
59 | s1.Outlet.P = 507.1 * 'kPa'; |
---|
60 | #s1.Outlet.v = 0.1380; |
---|
61 | s1.Outlet.z = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; |
---|
62 | |
---|
63 | fl.OutletV.F = 68.5 * 'kmol/h'; |
---|
64 | Q.OutletQ.Q = 0 * 'kJ/h'; |
---|
65 | |
---|
66 | SET |
---|
67 | fl.V = 50 * 'm^3'; |
---|
68 | fl.diameter = 2 * 'm'; |
---|
69 | fl.orientation = "vertical"; |
---|
70 | # fl.orientation = "horizontal"; |
---|
71 | |
---|
72 | INITIAL |
---|
73 | fl.OutletL.T = 338 * 'K'; |
---|
74 | fl.Level = 0.4 * 'm'; |
---|
75 | |
---|
76 | fl.OutletL.z(1) = 0.1; |
---|
77 | fl.OutletL.z(2) = 0.1; |
---|
78 | fl.OutletL.z(3) = 0.1; |
---|
79 | fl.OutletL.z(4) = 0.1; |
---|
80 | fl.OutletL.z(5) = 0.1; |
---|
81 | |
---|
82 | OPTIONS |
---|
83 | Dynamic = true; |
---|
84 | TimeStep = 0.1; |
---|
85 | TimeEnd = 5; |
---|
86 | TimeUnit = 'h'; |
---|
87 | end |
---|
88 | |
---|
89 | # exemplo baseado nos dados do artigo do Gani 1985. |
---|
90 | FlowSheet flashSteady_Test |
---|
91 | PARAMETERS |
---|
92 | PP as Plugin(Brief="Physical Properties", |
---|
93 | Type="PP", |
---|
94 | Components = ["1,3-butadiene", "isobutene", "n-pentane", |
---|
95 | "1-pentene", "1-hexene", "benzene"], |
---|
96 | LiquidModel = "PR", |
---|
97 | VapourModel = "PR" |
---|
98 | ); |
---|
99 | NComp as Integer; |
---|
100 | |
---|
101 | VARIABLES |
---|
102 | Q as energy_source (Brief="Heat supplied"); |
---|
103 | |
---|
104 | SET |
---|
105 | NComp = PP.NumberOfComponents; |
---|
106 | |
---|
107 | DEVICES |
---|
108 | fl as flash_steady; |
---|
109 | s1 as source; |
---|
110 | |
---|
111 | CONNECTIONS |
---|
112 | s1.Outlet to fl.Inlet; |
---|
113 | Q.OutletQ to fl.InletQ; |
---|
114 | |
---|
115 | SPECIFY |
---|
116 | s1.Outlet.F = 496.3 * 'kmol/h'; |
---|
117 | s1.Outlet.T = 338 * 'K'; |
---|
118 | s1.Outlet.P = 507.1 * 'kPa'; |
---|
119 | #s1.Outlet.v = 0.1380; |
---|
120 | s1.Outlet.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283]; |
---|
121 | |
---|
122 | fl.OutletL.P = 2.5 * 'atm'; |
---|
123 | |
---|
124 | #Q.OutletQ.Q = 0 * 'kJ/h'; |
---|
125 | fl.OutletL.T = 315.06 * 'K'; |
---|
126 | |
---|
127 | OPTIONS |
---|
128 | Dynamic = false; |
---|
129 | end |
---|