[86] | 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 Diff_Dist |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
| 19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
| 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Maurício Carvalho Maciel |
---|
| 23 | * $Id: sample_batch_dist.mso 633 2008-09-24 00:26:30Z bicca $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
| 25 | |
---|
[1] | 26 | using "stage_separators/batch_dist"; |
---|
| 27 | |
---|
| 28 | FlowSheet TesteBatch |
---|
| 29 | |
---|
| 30 | PARAMETERS |
---|
[213] | 31 | PP as Plugin(Brief="Physical Properties", |
---|
| 32 | Type="PP", |
---|
| 33 | Components = [ "isobutane", "benzene" ], |
---|
| 34 | LiquidModel = "PR", |
---|
| 35 | VapourModel = "PR" |
---|
| 36 | ); |
---|
[1] | 37 | NComp as Integer; |
---|
| 38 | |
---|
| 39 | SET |
---|
| 40 | NComp = PP.NumberOfComponents; |
---|
| 41 | |
---|
| 42 | DEVICES |
---|
| 43 | batch as Diff_Dist; |
---|
[318] | 44 | reflux as liquid_stream; |
---|
| 45 | feed as source; |
---|
| 46 | Q as energy_source; |
---|
[1] | 47 | |
---|
| 48 | CONNECTIONS |
---|
| 49 | reflux to batch.InletL; |
---|
[318] | 50 | feed.Outlet to batch.Inlet; |
---|
| 51 | Q.OutletQ to batch.InletQ; |
---|
[1] | 52 | |
---|
| 53 | EQUATIONS |
---|
| 54 | if batch.Level > 1E-3 then |
---|
[202] | 55 | batch.OutletV.F = 150 * 'kmol/h'; |
---|
[318] | 56 | Q.OutletQ.Q = 3.7743e6 * 'kJ/h'; |
---|
[1] | 57 | else |
---|
[202] | 58 | batch.OutletV.F = 0 * 'kmol/h'; |
---|
[318] | 59 | Q.OutletQ.Q = 0 * 'kJ/h'; |
---|
[1] | 60 | end |
---|
| 61 | |
---|
| 62 | SPECIFY |
---|
[202] | 63 | reflux.F = 0 * 'kmol/h'; |
---|
| 64 | reflux.T = 328 * 'K'; |
---|
| 65 | reflux.P = 180 * 'kPa'; |
---|
[1] | 66 | reflux.z = [0.5, 0.5]; |
---|
| 67 | |
---|
[633] | 68 | feed.F = 0 * 'kmol/h'; |
---|
| 69 | feed.T = 328 * 'K'; |
---|
| 70 | feed.P = 180 * 'kPa'; |
---|
| 71 | feed.Composition= [0.5, 0.5]; |
---|
[1] | 72 | |
---|
| 73 | SET |
---|
[202] | 74 | batch.V = 3 * 'm^3'; |
---|
| 75 | batch.Across = 1 * 'm^2'; |
---|
[1] | 76 | |
---|
| 77 | INITIAL |
---|
[202] | 78 | batch.T = 298 *'K'; |
---|
| 79 | batch.Level = 2.5 * 'm'; |
---|
[1] | 80 | batch.x(2) = 0.2; |
---|
| 81 | |
---|
| 82 | OPTIONS |
---|
[202] | 83 | TimeEnd = 20; |
---|
| 84 | TimeStep = 0.1; |
---|
| 85 | TimeUnit = 'min'; |
---|
[1] | 86 | end |
---|