[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 202 2007-03-14 04:17:25Z arge $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
| 25 | |
---|
[1] | 26 | using "stage_separators/batch_dist"; |
---|
| 27 | |
---|
| 28 | FlowSheet TesteBatch |
---|
| 29 | |
---|
| 30 | PARAMETERS |
---|
[202] | 31 | PP as Plugin(Brief="Physical Properties",File="vrpp"); |
---|
[1] | 32 | NComp as Integer; |
---|
| 33 | |
---|
| 34 | SET |
---|
[86] | 35 | PP.Components = [ "isobutane", "benzene" ]; |
---|
[1] | 36 | PP.LiquidModel = "PR"; |
---|
| 37 | PP.VapourModel = "PR"; |
---|
| 38 | NComp = PP.NumberOfComponents; |
---|
| 39 | |
---|
| 40 | DEVICES |
---|
| 41 | batch as Diff_Dist; |
---|
[202] | 42 | reflux as stream; |
---|
| 43 | feed as stream; |
---|
[1] | 44 | |
---|
| 45 | CONNECTIONS |
---|
| 46 | reflux to batch.InletL; |
---|
| 47 | feed to batch.Inlet; |
---|
| 48 | |
---|
| 49 | EQUATIONS |
---|
| 50 | if batch.Level > 1E-3 then |
---|
[202] | 51 | batch.OutletV.F = 150 * 'kmol/h'; |
---|
| 52 | batch.Q = 3.7743e6 * 'kJ/h'; |
---|
[1] | 53 | else |
---|
[202] | 54 | batch.OutletV.F = 0 * 'kmol/h'; |
---|
| 55 | batch.Q = 0 * 'kJ/h'; |
---|
[1] | 56 | end |
---|
| 57 | |
---|
| 58 | SPECIFY |
---|
[202] | 59 | reflux.F = 0 * 'kmol/h'; |
---|
| 60 | reflux.T = 328 * 'K'; |
---|
| 61 | reflux.P = 180 * 'kPa'; |
---|
[1] | 62 | reflux.z = [0.5, 0.5]; |
---|
| 63 | reflux.v = 0; |
---|
[202] | 64 | reflux.h = 0 * 'kJ/kmol'; |
---|
[1] | 65 | |
---|
[202] | 66 | feed.F = 0 * 'kmol/h'; |
---|
| 67 | feed.T = 328 * 'K'; |
---|
| 68 | feed.P = 180 * 'kPa'; |
---|
[1] | 69 | feed.z = [0.5, 0.5]; |
---|
| 70 | feed.v = 0; |
---|
[202] | 71 | feed.h = 0 * 'kJ/kmol'; |
---|
[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 | RelativeAccuracy = 1e-3; |
---|
| 84 | TimeEnd = 20; |
---|
| 85 | TimeStep = 0.1; |
---|
| 86 | TimeUnit = 'min'; |
---|
[1] | 87 | end |
---|