[854] | 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 Sample_Flowsheet |
---|
| 29 | PARAMETERS |
---|
| 30 | PP as Plugin(Brief="Physical Properties", Type="PP", |
---|
| 31 | Components = ["1,3-butadiene", "isobutene", "n-pentane", |
---|
| 32 | "1-pentene", "1-hexene", "benzene"], |
---|
| 33 | LiquidModel = "PR", |
---|
| 34 | VapourModel = "PR" |
---|
| 35 | ); |
---|
| 36 | NComp as Integer; |
---|
| 37 | |
---|
| 38 | VARIABLES |
---|
| 39 | Q as energy_source (Brief="Heat supplied"); |
---|
| 40 | |
---|
| 41 | SET |
---|
| 42 | NComp = PP.NumberOfComponents; |
---|
| 43 | |
---|
| 44 | DEVICES |
---|
| 45 | flash_1 as flash; |
---|
| 46 | feed as source; |
---|
| 47 | |
---|
| 48 | CONNECTIONS |
---|
| 49 | feed.Outlet to flash_1.Inlet; |
---|
| 50 | Q.OutletQ to flash_1.InletQ; |
---|
| 51 | |
---|
| 52 | EQUATIONS |
---|
| 53 | flash_1.OutletL.F = 400*sqrt(flash_1.Level/'m') * 'kmol/h'; |
---|
| 54 | |
---|
| 55 | SPECIFY |
---|
| 56 | feed.F = 496.3 * 'kmol/h'; |
---|
| 57 | feed.T = 338 * 'K'; |
---|
| 58 | feed.P = 507.1 * 'kPa'; |
---|
| 59 | feed.Composition = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; |
---|
| 60 | |
---|
| 61 | flash_1.OutletV.F = 68.5 * 'kmol/h'; |
---|
| 62 | Q.OutletQ.Q = 0 * 'kJ/h'; |
---|
| 63 | |
---|
| 64 | SET |
---|
| 65 | flash_1.V = 50 * 'm^3'; |
---|
| 66 | flash_1.diameter = 2 * 'm'; |
---|
| 67 | flash_1.orientation = "vertical"; |
---|
| 68 | # fl.orientation = "horizontal"; |
---|
| 69 | |
---|
| 70 | INITIAL |
---|
| 71 | flash_1.OutletL.T = 338 * 'K'; |
---|
| 72 | flash_1.Level = 0.4 * 'm'; |
---|
| 73 | |
---|
| 74 | flash_1.OutletL.z(1) = 0.1; |
---|
| 75 | flash_1.OutletL.z(2) = 0.1; |
---|
| 76 | flash_1.OutletL.z(3) = 0.1; |
---|
| 77 | flash_1.OutletL.z(4) = 0.1; |
---|
| 78 | flash_1.OutletL.z(5) = 0.1; |
---|
| 79 | |
---|
| 80 | OPTIONS |
---|
| 81 | Dynamic = true; |
---|
| 82 | TimeStep = 0.01; |
---|
| 83 | TimeEnd = 1; |
---|
| 84 | TimeUnit = 'h'; |
---|
| 85 | end |
---|
| 86 | |
---|