[526] | 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.Geometry.DoInner = 42.16*'mm'; |
---|
| 93 | exchanger.Geometry.DiInner = 35.05*'mm'; |
---|
| 94 | exchanger.Geometry.DiOuter = 52.50*'mm'; |
---|
| 95 | exchanger.Geometry.Kwall = 0.057 *'kW/m/K'; |
---|
| 96 | exchanger.Geometry.Lpipe = 9*'m'; |
---|
| 97 | |
---|
| 98 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 99 | # Fouling |
---|
| 100 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 101 | exchanger.Geometry.Rfi = 0.00018*'m^2*K/W'; |
---|
| 102 | exchanger.Geometry.Rfo = 0*'m^2*K/W'; |
---|
| 103 | |
---|
| 104 | SPECIFY |
---|
| 105 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 106 | # Hot Stream |
---|
| 107 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 108 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
| 109 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
| 110 | InletHot.Outlet.T = 338.71 * 'K'; |
---|
| 111 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
| 112 | InletHot.Outlet.z = [1,0]; |
---|
| 113 | |
---|
| 114 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 115 | # Cold Stream |
---|
| 116 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 117 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
| 118 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
| 119 | InletCold.Outlet.T = 288.71 * 'K'; |
---|
| 120 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
| 121 | InletCold.Outlet.z = [0,1]; |
---|
| 122 | |
---|
| 123 | OPTIONS |
---|
| 124 | |
---|
| 125 | Dynamic = false; |
---|
| 126 | GuessFile = "TESTE_1"; |
---|
| 127 | |
---|
| 128 | end |
---|
| 129 | |
---|
| 130 | FlowSheet TESTE_2 |
---|
| 131 | |
---|
| 132 | PARAMETERS |
---|
| 133 | PP as Plugin (Type ="PP", LiquidModel = "PR", VapourModel = "PR", |
---|
| 134 | Components = ["n-hexane","benzene"]); |
---|
| 135 | NComp as Integer; |
---|
| 136 | |
---|
| 137 | DEVICES |
---|
| 138 | |
---|
| 139 | exchanger as DoublePipe_LMTD; |
---|
| 140 | InletHot as simple_source; |
---|
| 141 | InletCold as simple_source; |
---|
| 142 | OutletHot as simple_sink; |
---|
| 143 | OutletCold as simple_sink; |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | CONNECTIONS |
---|
| 147 | |
---|
| 148 | InletCold.Outlet to exchanger.InletInner; |
---|
| 149 | InletHot.Outlet to exchanger.InletOuter; |
---|
| 150 | exchanger.OutletOuter to OutletHot.Inlet; |
---|
| 151 | exchanger.OutletInner to OutletCold.Inlet; |
---|
| 152 | |
---|
| 153 | SET |
---|
| 154 | |
---|
| 155 | NComp = PP.NumberOfComponents; |
---|
| 156 | |
---|
| 157 | #exchanger.CalculationApproach = "Simplified"; |
---|
| 158 | exchanger.Qestimated = 40*'kW'; |
---|
| 159 | |
---|
| 160 | exchanger.CalculationApproach = "Full"; |
---|
| 161 | |
---|
| 162 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 163 | # Options |
---|
| 164 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 165 | |
---|
| 166 | exchanger.FlowDirection = "counter"; |
---|
| 167 | exchanger.InnerTurbulentCorrelation = "SiederTate"; |
---|
| 168 | exchanger.InnerLaminarCorrelation = "Schlunder"; |
---|
| 169 | |
---|
| 170 | exchanger.OuterTurbulentCorrelation = "SiederTate"; |
---|
| 171 | exchanger.OuterLaminarCorrelation = "Schlunder"; |
---|
| 172 | |
---|
| 173 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 174 | # Double Pipe Geometrical Parameters and Alocation |
---|
| 175 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 176 | |
---|
| 177 | exchanger.Geometry.DoInner = 42.16*'mm'; |
---|
| 178 | exchanger.Geometry.DiInner = 35.05*'mm'; |
---|
| 179 | exchanger.Geometry.DiOuter = 52.50*'mm'; |
---|
| 180 | exchanger.Geometry.Kwall = 0.057 *'kW/m/K'; |
---|
| 181 | exchanger.Geometry.Lpipe = 9*'m'; |
---|
| 182 | |
---|
| 183 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 184 | # Fouling |
---|
| 185 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 186 | exchanger.Geometry.Rfi = 0.00018*'m^2*K/W'; |
---|
| 187 | exchanger.Geometry.Rfo = 0*'m^2*K/W'; |
---|
| 188 | |
---|
| 189 | SPECIFY |
---|
| 190 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 191 | # Hot Stream |
---|
| 192 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 193 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
| 194 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
| 195 | InletHot.Outlet.T = 338.71 * 'K'; |
---|
| 196 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
| 197 | InletHot.Outlet.z = [1,0]; |
---|
| 198 | |
---|
| 199 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 200 | # Cold Stream |
---|
| 201 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 202 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
| 203 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
| 204 | InletCold.Outlet.T = 288.71 * 'K'; |
---|
| 205 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
| 206 | InletCold.Outlet.z = [0,1]; |
---|
| 207 | |
---|
| 208 | OPTIONS |
---|
| 209 | |
---|
| 210 | Dynamic = false; |
---|
| 211 | GuessFile = "TESTE_2"; |
---|
| 212 | |
---|
| 213 | end |
---|
| 214 | |
---|
| 215 | FlowSheet TESTE_3 |
---|
| 216 | |
---|
| 217 | PARAMETERS |
---|
| 218 | PP as Plugin (Type ="PP", LiquidModel = "PR", VapourModel = "PR", |
---|
| 219 | Components = [ "aniline", "toluene"]); |
---|
| 220 | NComp as Integer; |
---|
| 221 | |
---|
| 222 | DEVICES |
---|
| 223 | |
---|
| 224 | exchanger as DoublePipe_LMTD; |
---|
| 225 | InletHot as simple_source; |
---|
| 226 | InletCold as simple_source; |
---|
| 227 | OutletHot as simple_sink; |
---|
| 228 | OutletCold as simple_sink; |
---|
| 229 | |
---|
| 230 | |
---|
| 231 | CONNECTIONS |
---|
| 232 | |
---|
| 233 | InletCold.Outlet to exchanger.InletInner; |
---|
| 234 | InletHot.Outlet to exchanger.InletOuter; |
---|
| 235 | exchanger.OutletOuter to OutletHot.Inlet; |
---|
| 236 | exchanger.OutletInner to OutletCold.Inlet; |
---|
| 237 | |
---|
| 238 | SET |
---|
| 239 | |
---|
| 240 | NComp = PP.NumberOfComponents; |
---|
| 241 | |
---|
| 242 | #exchanger.CalculationApproach = "Simplified"; |
---|
| 243 | exchanger.Qestimated = 30*'kW'; |
---|
| 244 | |
---|
| 245 | exchanger.CalculationApproach = "Full"; |
---|
| 246 | |
---|
| 247 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 248 | # Options |
---|
| 249 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 250 | |
---|
| 251 | exchanger.FlowDirection = "counter"; |
---|
| 252 | exchanger.InnerTurbulentCorrelation = "SiederTate"; |
---|
| 253 | exchanger.InnerLaminarCorrelation = "Schlunder"; |
---|
| 254 | |
---|
| 255 | exchanger.OuterTurbulentCorrelation = "SiederTate"; |
---|
| 256 | exchanger.OuterLaminarCorrelation = "Schlunder"; |
---|
| 257 | |
---|
| 258 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 259 | # Double Pipe Geometrical Parameters and Alocation |
---|
| 260 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 261 | |
---|
| 262 | exchanger.Geometry.DoInner = 42.16*'mm'; |
---|
| 263 | exchanger.Geometry.DiInner = 35.05*'mm'; |
---|
| 264 | exchanger.Geometry.DiOuter = 52.50*'mm'; |
---|
| 265 | exchanger.Geometry.Kwall = 0.057 *'kW/m/K'; |
---|
| 266 | exchanger.Geometry.Lpipe = 9*'m'; |
---|
| 267 | |
---|
| 268 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 269 | # Fouling |
---|
| 270 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 271 | exchanger.Geometry.Rfi = 0.00018*'m^2*K/W'; |
---|
| 272 | exchanger.Geometry.Rfo = 0*'m^2*K/W'; |
---|
| 273 | |
---|
| 274 | SPECIFY |
---|
| 275 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 276 | # Hot Stream |
---|
| 277 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 278 | #InletHot.Fw = 4396 * 'kg/h'; |
---|
| 279 | InletHot.Outlet.F = 47.2038 * 'kmol/h'; |
---|
| 280 | InletHot.Outlet.T = 413 * 'K'; |
---|
| 281 | InletHot.Outlet.P = 413.685 * 'kPa'; |
---|
| 282 | InletHot.Outlet.z = [1,0]; |
---|
| 283 | |
---|
| 284 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 285 | # Cold Stream |
---|
| 286 | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
| 287 | #InletCold.Fw = 4536 * 'kg/h'; |
---|
| 288 | InletCold.Outlet.F = 58.0694 * 'kmol/h'; |
---|
| 289 | InletCold.Outlet.T = 330 * 'K'; |
---|
| 290 | InletCold.Outlet.P = 413.685 * 'kPa'; |
---|
| 291 | InletCold.Outlet.z = [0,1]; |
---|
| 292 | |
---|
| 293 | OPTIONS |
---|
| 294 | |
---|
| 295 | Dynamic = false; |
---|
| 296 | GuessFile = "TESTE_3"; |
---|
| 297 | end |
---|