[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 tray |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
| 19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
| 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Paula B. Staudt |
---|
| 23 | * $Id: sample_tray.mso 86 2006-12-08 20:58:15Z paula $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
[1] | 25 | using "stage_separators/tray"; |
---|
| 26 | |
---|
| 27 | FlowSheet tray_Test |
---|
| 28 | PARAMETERS |
---|
| 29 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
| 30 | NComp as Integer; |
---|
| 31 | |
---|
| 32 | SET |
---|
[86] | 33 | PP.Components = [ "n-pentane", "benzene"]; |
---|
[1] | 34 | PP.LiquidModel = "PR"; |
---|
| 35 | PP.VapourModel = "PR"; |
---|
| 36 | NComp = PP.NumberOfComponents; |
---|
| 37 | |
---|
| 38 | DEVICES |
---|
| 39 | t1 as tray; |
---|
| 40 | feed as stream_therm; |
---|
| 41 | inL as stream_therm; |
---|
| 42 | inV as stream_therm; |
---|
| 43 | |
---|
| 44 | CONNECTIONS |
---|
| 45 | feed to t1.Inlet; |
---|
| 46 | inL to t1.InletL; |
---|
| 47 | inV to t1.InletV; |
---|
| 48 | |
---|
| 49 | SPECIFY |
---|
| 50 | feed.F = 113.4 * "kmol/h"; |
---|
| 51 | feed.T = 291 * "K"; |
---|
| 52 | feed.P = 1.66 * "atm"; |
---|
| 53 | feed.z = [0.5, 0.5]; |
---|
| 54 | feed.v = 0; |
---|
| 55 | |
---|
| 56 | inL.P = 165 * "kPa"; |
---|
| 57 | inL.T = 310 * "K"; |
---|
| 58 | inL.F = 61.99 * "kmol/h"; |
---|
| 59 | inL.z = [0.1641, 0.8359]; |
---|
| 60 | inL.v = 0.0; |
---|
| 61 | |
---|
| 62 | inV.F = 147.1 * "kmol/h"; |
---|
| 63 | inV.v = 1.0; |
---|
| 64 | inV.P = 150 * "kPa"; |
---|
| 65 | inV.T = 321 * "K"; |
---|
| 66 | inV.z = [0.0584, 0.9416]; |
---|
| 67 | |
---|
| 68 | t1.Emv = 1; |
---|
| 69 | t1.OutletV.F = 147.1 * "kmol/h"; |
---|
| 70 | |
---|
| 71 | SET |
---|
| 72 | t1.V = 4 * "ft^3"; |
---|
| 73 | t1.Ah = 0.394 * "ft^2"; |
---|
| 74 | t1.lw = 20.94 * "in"; |
---|
| 75 | t1.hw = 0.125 * "ft"; |
---|
| 76 | t1.Q = 0 * "kW"; |
---|
| 77 | t1.beta = 0.6; |
---|
| 78 | t1.alfa = 4; |
---|
| 79 | t1.Ap = 3.94 * "ft^2"; |
---|
| 80 | |
---|
| 81 | INITIAL |
---|
| 82 | t1.OutletL.T = 290 *"K"; |
---|
| 83 | t1.Level = 0.9 * t1.hw; |
---|
| 84 | t1.OutletL.z(1) = 0.5; |
---|
| 85 | |
---|
| 86 | OPTIONS |
---|
| 87 | relativeAccuracy = 1e-6; |
---|
| 88 | time = [0:1:100]; |
---|
| 89 | end |
---|