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 a Double Pipe Heat Exchanger - LMTD Method |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Gerson B. Bicca |
---|
23 | * $Id: Sample_DoublePipe_convergence.mso $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "heat_exchangers/DoublePipe"; |
---|
26 | |
---|
27 | |
---|
28 | #* Note: This sample file explain how to obtain a solution using a double pipe simplified model at conditions with better convergence characteristics |
---|
29 | |
---|
30 | step 1: |
---|
31 | - use the option below to obtain a good approximation of the final solution: |
---|
32 | |
---|
33 | CalculationApproach = "Simplified"; setting the simplified model |
---|
34 | Qestimated = 70*'kW'; estimate heat duty for the simplified model (a good value to heat duty) |
---|
35 | |
---|
36 | step 2: |
---|
37 | - Once you got convergence, use the EMSO graphical interface and save the result to a file (eg. result.rlt) |
---|
38 | |
---|
39 | step 3: |
---|
40 | - CalculationApproach = "Full"; setting the full model |
---|
41 | - guessFile="result.rlt" use the option guessFile |
---|
42 | |
---|
43 | *# |
---|
44 | |
---|
45 | FlowSheet TESTE_1 |
---|
46 | |
---|
47 | PARAMETERS |
---|
48 | PP as Plugin (Type ="PP", LiquidModel = "PR", VapourModel = "PR", |
---|
49 | Components = ["aniline","benzene"]); |
---|
50 | NComp as Integer; |
---|
51 | |
---|
52 | DEVICES |
---|
53 | |
---|
54 | exchanger as DoublePipe_LMTD; |
---|
55 | InletHot as simple_source; |
---|
56 | InletCold as simple_source; |
---|
57 | OutletHot as simple_sink; |
---|
58 | OutletCold as simple_sink; |
---|
59 | |
---|
60 | |
---|
61 | CONNECTIONS |
---|
62 | |
---|
63 | InletCold.Outlet to exchanger.InletInner; |
---|
64 | InletHot.Outlet to exchanger.InletOuter; |
---|
65 | exchanger.OutletOuter to OutletHot.Inlet; |
---|
66 | exchanger.OutletInner to OutletCold.Inlet; |
---|
67 | |
---|
68 | SET |
---|
69 | |
---|
70 | NComp = PP.NumberOfComponents; |
---|
71 | |
---|
72 | #exchanger.CalculationApproach = "Simplified"; |
---|
73 | exchanger.Qestimated = 30*'kW'; |
---|
74 | |
---|
75 | exchanger.CalculationApproach = "Full"; |
---|
76 | |
---|
77 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
78 | # Options |
---|
79 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
80 | |
---|
81 | exchanger.FlowDirection = "counter"; |
---|
82 | exchanger.InnerTurbulentCorrelation = "SiederTate"; |
---|
83 | exchanger.InnerLaminarCorrelation = "Schlunder"; |
---|
84 | |
---|
85 | exchanger.OuterTurbulentCorrelation = "SiederTate"; |
---|
86 | exchanger.OuterLaminarCorrelation = "Schlunder"; |
---|
87 | |
---|
88 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
89 | # Double Pipe Geometrical Parameters and Alocation |
---|
90 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
91 | |
---|
92 | exchanger.DoInner = 42.16*'mm'; |
---|
93 | exchanger.DiInner = 35.05*'mm'; |
---|
94 | exchanger.DiOuter = 52.50*'mm'; |
---|
95 | exchanger.Kwall = 0.057 *'kW/m/K'; |
---|
96 | exchanger.Lpipe = 9*'m'; |
---|
97 | |
---|
98 | #exchanger.Donozzle_Inner = 36.63*'mm'; |
---|
99 | #exchanger.Dinozzle_Inner = 36.63*'mm'; |
---|
100 | |
---|
101 | #exchanger.Donozzle_Outer = 42.72*'mm'; |
---|
102 | #exchanger.Dinozzle_Outer = 42.72*'mm'; |
---|
103 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
104 | # Fouling |
---|
105 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
106 | exchanger.Rfi = 0.00018*'m^2*K/W'; |
---|
107 | exchanger.Rfo = 0*'m^2*K/W'; |
---|
108 | |
---|
109 | SPECIFY |
---|
110 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
111 | # Hot Stream |
---|
112 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
113 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
114 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
115 | InletHot.Outlet.T = 338.71 * 'K'; |
---|
116 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
117 | InletHot.Outlet.z = [1,0]; |
---|
118 | |
---|
119 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
120 | # Cold Stream |
---|
121 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
122 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
123 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
124 | InletCold.Outlet.T = 288.71 * 'K'; |
---|
125 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
126 | InletCold.Outlet.z = [0,1]; |
---|
127 | |
---|
128 | OPTIONS |
---|
129 | |
---|
130 | Dynamic = false; |
---|
131 | GuessFile = "TESTE_1"; |
---|
132 | |
---|
133 | end |
---|
134 | |
---|
135 | FlowSheet TESTE_2 |
---|
136 | |
---|
137 | PARAMETERS |
---|
138 | PP as Plugin (Type ="PP", LiquidModel = "PR", VapourModel = "PR", |
---|
139 | Components = ["n-hexane","benzene"]); |
---|
140 | NComp as Integer; |
---|
141 | |
---|
142 | DEVICES |
---|
143 | |
---|
144 | exchanger as DoublePipe_LMTD; |
---|
145 | InletHot as simple_source; |
---|
146 | InletCold as simple_source; |
---|
147 | OutletHot as simple_sink; |
---|
148 | OutletCold as simple_sink; |
---|
149 | |
---|
150 | |
---|
151 | CONNECTIONS |
---|
152 | |
---|
153 | InletCold.Outlet to exchanger.InletInner; |
---|
154 | InletHot.Outlet to exchanger.InletOuter; |
---|
155 | exchanger.OutletOuter to OutletHot.Inlet; |
---|
156 | exchanger.OutletInner to OutletCold.Inlet; |
---|
157 | |
---|
158 | SET |
---|
159 | |
---|
160 | NComp = PP.NumberOfComponents; |
---|
161 | |
---|
162 | #exchanger.CalculationApproach = "Simplified"; |
---|
163 | exchanger.Qestimated = 40*'kW'; |
---|
164 | |
---|
165 | exchanger.CalculationApproach = "Full"; |
---|
166 | |
---|
167 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
168 | # Options |
---|
169 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
170 | |
---|
171 | exchanger.FlowDirection = "counter"; |
---|
172 | exchanger.InnerTurbulentCorrelation = "SiederTate"; |
---|
173 | exchanger.InnerLaminarCorrelation = "Schlunder"; |
---|
174 | |
---|
175 | exchanger.OuterTurbulentCorrelation = "SiederTate"; |
---|
176 | exchanger.OuterLaminarCorrelation = "Schlunder"; |
---|
177 | |
---|
178 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
179 | # Double Pipe Geometrical Parameters and Alocation |
---|
180 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
181 | |
---|
182 | exchanger.DoInner = 42.16*'mm'; |
---|
183 | exchanger.DiInner = 35.05*'mm'; |
---|
184 | exchanger.DiOuter = 52.50*'mm'; |
---|
185 | exchanger.Kwall = 0.057 *'kW/m/K'; |
---|
186 | exchanger.Lpipe = 9*'m'; |
---|
187 | |
---|
188 | #exchanger.Donozzle_Inner = 36.63*'mm'; |
---|
189 | #exchanger.Dinozzle_Inner = 36.63*'mm'; |
---|
190 | |
---|
191 | #exchanger.Donozzle_Outer = 42.72*'mm'; |
---|
192 | #exchanger.Dinozzle_Outer = 42.72*'mm'; |
---|
193 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
194 | # Fouling |
---|
195 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
196 | exchanger.Rfi = 0.00018*'m^2*K/W'; |
---|
197 | exchanger.Rfo = 0*'m^2*K/W'; |
---|
198 | |
---|
199 | SPECIFY |
---|
200 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
201 | # Hot Stream |
---|
202 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
203 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
204 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
205 | InletHot.Outlet.T = 338.71 * 'K'; |
---|
206 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
207 | InletHot.Outlet.z = [1,0]; |
---|
208 | |
---|
209 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
210 | # Cold Stream |
---|
211 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
212 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
213 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
214 | InletCold.Outlet.T = 288.71 * 'K'; |
---|
215 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
216 | InletCold.Outlet.z = [0,1]; |
---|
217 | |
---|
218 | OPTIONS |
---|
219 | |
---|
220 | Dynamic = false; |
---|
221 | GuessFile = "TESTE_2"; |
---|
222 | |
---|
223 | end |
---|
224 | |
---|
225 | FlowSheet TESTE_3 |
---|
226 | |
---|
227 | PARAMETERS |
---|
228 | PP as Plugin (Type ="PP", LiquidModel = "PR", VapourModel = "PR", |
---|
229 | Components = [ "aniline", "toluene"]); |
---|
230 | NComp as Integer; |
---|
231 | |
---|
232 | DEVICES |
---|
233 | |
---|
234 | exchanger as DoublePipe_LMTD; |
---|
235 | InletHot as simple_source; |
---|
236 | InletCold as simple_source; |
---|
237 | OutletHot as simple_sink; |
---|
238 | OutletCold as simple_sink; |
---|
239 | |
---|
240 | |
---|
241 | CONNECTIONS |
---|
242 | |
---|
243 | InletCold.Outlet to exchanger.InletInner; |
---|
244 | InletHot.Outlet to exchanger.InletOuter; |
---|
245 | exchanger.OutletOuter to OutletHot.Inlet; |
---|
246 | exchanger.OutletInner to OutletCold.Inlet; |
---|
247 | |
---|
248 | SET |
---|
249 | |
---|
250 | NComp = PP.NumberOfComponents; |
---|
251 | |
---|
252 | #exchanger.CalculationApproach = "Simplified"; |
---|
253 | exchanger.Qestimated = 30*'kW'; |
---|
254 | |
---|
255 | exchanger.CalculationApproach = "Full"; |
---|
256 | |
---|
257 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
258 | # Options |
---|
259 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
260 | |
---|
261 | exchanger.FlowDirection = "counter"; |
---|
262 | exchanger.InnerTurbulentCorrelation = "SiederTate"; |
---|
263 | exchanger.InnerLaminarCorrelation = "Schlunder"; |
---|
264 | |
---|
265 | exchanger.OuterTurbulentCorrelation = "SiederTate"; |
---|
266 | exchanger.OuterLaminarCorrelation = "Schlunder"; |
---|
267 | |
---|
268 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
269 | # Double Pipe Geometrical Parameters and Alocation |
---|
270 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
271 | |
---|
272 | exchanger.DoInner = 42.16*'mm'; |
---|
273 | exchanger.DiInner = 35.05*'mm'; |
---|
274 | exchanger.DiOuter = 52.50*'mm'; |
---|
275 | exchanger.Kwall = 0.057 *'kW/m/K'; |
---|
276 | exchanger.Lpipe = 9*'m'; |
---|
277 | |
---|
278 | #exchanger.Donozzle_Inner = 36.63*'mm'; |
---|
279 | #exchanger.Dinozzle_Inner = 36.63*'mm'; |
---|
280 | |
---|
281 | #exchanger.Donozzle_Outer = 42.72*'mm'; |
---|
282 | #exchanger.Dinozzle_Outer = 42.72*'mm'; |
---|
283 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
284 | # Fouling |
---|
285 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
286 | exchanger.Rfi = 0.00018*'m^2*K/W'; |
---|
287 | exchanger.Rfo = 0*'m^2*K/W'; |
---|
288 | |
---|
289 | SPECIFY |
---|
290 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
291 | # Hot Stream |
---|
292 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
293 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
294 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
295 | InletHot.Outlet.T = 413 * 'K'; |
---|
296 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
297 | InletHot.Outlet.z = [1,0]; |
---|
298 | |
---|
299 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
300 | # Cold Stream |
---|
301 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
302 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
303 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
304 | InletCold.Outlet.T = 330 * 'K'; |
---|
305 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
306 | InletCold.Outlet.z = [0,1]; |
---|
307 | |
---|
308 | OPTIONS |
---|
309 | |
---|
310 | Dynamic = false; |
---|
311 | GuessFile = "TESTE_3"; |
---|
312 | end |
---|