[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 tanks model |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
[88] | 19 | * This sample file needs VRTherm DEMO(www.vrtech.com.br) to run. |
---|
[86] | 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Paula B. Staudt |
---|
| 23 | * $Id: sample_tank.mso 310 2007-07-13 21:28:33Z arge $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
[1] | 25 | using "stage_separators/tank"; |
---|
| 26 | |
---|
| 27 | FlowSheet tank_Test |
---|
| 28 | PARAMETERS |
---|
[213] | 29 | PP as Plugin(Brief="Physical Properties", |
---|
| 30 | Type="PP", |
---|
| 31 | Components = ["methane", "isobutane", "benzene"], |
---|
| 32 | LiquidModel = "PR", |
---|
| 33 | VapourModel = "PR" |
---|
| 34 | ); |
---|
[1] | 35 | NComp as Integer; |
---|
| 36 | SET |
---|
| 37 | NComp = PP.NumberOfComponents; |
---|
| 38 | |
---|
[46] | 39 | VARIABLES |
---|
[310] | 40 | Qtank as energy_source (Brief="Heat rate supplied to tank"); |
---|
[46] | 41 | |
---|
[1] | 42 | DEVICES |
---|
| 43 | t as tank; |
---|
[174] | 44 | s as source; |
---|
[1] | 45 | |
---|
| 46 | CONNECTIONS |
---|
[174] | 47 | s.Outlet to t.Inlet; |
---|
[310] | 48 | Qtank.Outlet to t.InletQ; |
---|
[1] | 49 | |
---|
| 50 | SPECIFY |
---|
[174] | 51 | s.Outlet.P = 480 * 'kPa'; |
---|
| 52 | s.Outlet.T = 310 * 'K'; |
---|
| 53 | s.Outlet.F = 180 * 'kmol/h'; |
---|
| 54 | s.Outlet.z = 1.0/NComp; |
---|
| 55 | # s.v = 0.698; |
---|
[42] | 56 | |
---|
[310] | 57 | Qtank.Outlet.Q = 0 * 'J/s'; |
---|
[174] | 58 | t.Outlet.F = 179 * 'kmol/h'; |
---|
[1] | 59 | |
---|
| 60 | SET |
---|
[174] | 61 | t.Across = 2.20 * 'm^2'; |
---|
[1] | 62 | |
---|
| 63 | INITIAL |
---|
[174] | 64 | t.Outlet.T = 305 *'K'; |
---|
| 65 | t.Level = 0.5 * 'm'; |
---|
[88] | 66 | t.Outlet.z([1:2]) = 1.0/NComp; |
---|
[1] | 67 | |
---|
| 68 | OPTIONS |
---|
[174] | 69 | TimeStep = 100; |
---|
| 70 | TimeEnd = 1000; |
---|
[1] | 71 | end |
---|
| 72 | |
---|
| 73 | FlowSheet tank_cylindrical_Test |
---|
| 74 | PARAMETERS |
---|
[213] | 75 | PP as Plugin(Brief="Physical Properties", |
---|
| 76 | Type="PP", |
---|
| 77 | Components = ["methane", "isobutane", "benzene"], |
---|
| 78 | LiquidModel = "PR", |
---|
| 79 | VapourModel = "PR" |
---|
| 80 | ); |
---|
[1] | 81 | NComp as Integer; |
---|
| 82 | SET |
---|
| 83 | NComp = PP.NumberOfComponents; |
---|
[46] | 84 | |
---|
| 85 | VARIABLES |
---|
[310] | 86 | Qtank as energy_source (Brief="Heat rate supplied to tank"); |
---|
[1] | 87 | |
---|
| 88 | DEVICES |
---|
| 89 | t as tank_cylindrical; |
---|
[174] | 90 | s as source; |
---|
[1] | 91 | |
---|
| 92 | CONNECTIONS |
---|
[174] | 93 | s.Outlet to t.Inlet; |
---|
[310] | 94 | Qtank.Outlet to t.InletQ; |
---|
[1] | 95 | |
---|
| 96 | SPECIFY |
---|
[174] | 97 | s.Outlet.F = 500 * 'kmol/h'; |
---|
| 98 | s.Outlet.T = 300 * 'K'; |
---|
| 99 | s.Outlet.P = 400 * 'kPa'; |
---|
| 100 | s.Outlet.z = 1/NComp; |
---|
| 101 | #s.v = 0.368; |
---|
[1] | 102 | |
---|
[310] | 103 | Qtank.Outlet.Q = 0 * 'J/s'; |
---|
[174] | 104 | t.Outlet.F = 490 * 'kmol/h'; |
---|
[1] | 105 | |
---|
| 106 | SET |
---|
[174] | 107 | t.radius = 0.9 * 'm'; |
---|
| 108 | t.L = 7.12 * 'm'; |
---|
[1] | 109 | |
---|
| 110 | INITIAL |
---|
[174] | 111 | t.Outlet.T = 280*'K'; |
---|
| 112 | t.Level = 1 * 'm'; |
---|
[88] | 113 | t.Outlet.z([1:2]) = 1.0/NComp; |
---|
[1] | 114 | |
---|
| 115 | OPTIONS |
---|
[174] | 116 | TimeStep = 100; |
---|
| 117 | TimeEnd = 1000; |
---|
[1] | 118 | end |
---|