Last change
on this file since 46 was
46,
checked in by Paula Bettio Staudt, 16 years ago
|
Fixed some sample files
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
1.6 KB
|
Rev | Line | |
---|
[1] | 1 | using "stage_separators/tank"; |
---|
| 2 | |
---|
| 3 | FlowSheet tank_Test |
---|
| 4 | PARAMETERS |
---|
| 5 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
| 6 | NComp as Integer; |
---|
| 7 | SET |
---|
| 8 | PP.Components = ["ethane", "propane", "propylene", "1-butene", "n-hexane"]; |
---|
| 9 | PP.LiquidModel = "PR"; |
---|
| 10 | PP.VapourModel = "PR"; |
---|
| 11 | NComp = PP.NumberOfComponents; |
---|
| 12 | |
---|
[46] | 13 | VARIABLES |
---|
| 14 | Qtank as heat_rate (Brief="Heat rate supplied to tank"); |
---|
| 15 | |
---|
[1] | 16 | DEVICES |
---|
| 17 | t as tank; |
---|
| 18 | s as stream_therm; |
---|
| 19 | |
---|
| 20 | CONNECTIONS |
---|
| 21 | s to t.Inlet; |
---|
[46] | 22 | Qtank to t.Q; |
---|
[1] | 23 | |
---|
| 24 | SPECIFY |
---|
| 25 | s.P = 480 * "kPa"; |
---|
| 26 | s.T = 310 * "K"; |
---|
| 27 | s.F = 180 * "kmol/h"; |
---|
| 28 | s.z = 1.0/NComp; |
---|
| 29 | s.v = 0.698; |
---|
[42] | 30 | |
---|
[46] | 31 | Qtank = 0 * "J/s"; |
---|
[1] | 32 | t.Outlet.F = 179 * "kmol/h"; |
---|
| 33 | |
---|
| 34 | SET |
---|
| 35 | t.Across = 2.20 * "m^2"; |
---|
| 36 | |
---|
| 37 | INITIAL |
---|
| 38 | t.Outlet.T = 305 *"K"; |
---|
| 39 | t.Level = 0.5 * "m"; |
---|
| 40 | t.Outlet.z([1:4]) = 1.0/NComp; |
---|
| 41 | |
---|
| 42 | OPTIONS |
---|
| 43 | relativeAccuracy = 1e-5; |
---|
| 44 | time = [0:100:1000]; |
---|
| 45 | end |
---|
| 46 | |
---|
| 47 | FlowSheet tank_cylindrical_Test |
---|
| 48 | PARAMETERS |
---|
| 49 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
| 50 | NComp as Integer; |
---|
| 51 | SET |
---|
| 52 | PP.Components = ["propane", "propylene", "1-butene","1,3-butadiene", "n-hexane"]; |
---|
| 53 | PP.LiquidModel = "PR"; |
---|
| 54 | PP.VapourModel = "PR"; |
---|
| 55 | NComp = PP.NumberOfComponents; |
---|
[46] | 56 | |
---|
| 57 | VARIABLES |
---|
| 58 | Qtank as heat_rate (Brief="Heat rate supplied to tank"); |
---|
[1] | 59 | |
---|
| 60 | DEVICES |
---|
| 61 | t as tank_cylindrical; |
---|
| 62 | s as stream_therm; |
---|
| 63 | |
---|
| 64 | CONNECTIONS |
---|
| 65 | s to t.Inlet; |
---|
[46] | 66 | Qtank to t.Q; |
---|
[1] | 67 | |
---|
| 68 | SPECIFY |
---|
| 69 | s.F = 500 * "kmol/h"; |
---|
| 70 | s.T = 300 * "K"; |
---|
| 71 | s.P = 400 * "kPa"; |
---|
| 72 | s.z = 1/NComp; |
---|
| 73 | s.v = 0.368; |
---|
| 74 | |
---|
[46] | 75 | Qtank = 0 * "J/s"; |
---|
[1] | 76 | t.Outlet.F = 490 * "kmol/h"; |
---|
| 77 | |
---|
| 78 | SET |
---|
| 79 | t.radius = 0.9 * "m"; |
---|
| 80 | t.L = 7.12 * "m"; |
---|
| 81 | |
---|
| 82 | INITIAL |
---|
| 83 | t.Outlet.T = 280*"K"; |
---|
| 84 | t.Level = 1 * "m"; |
---|
| 85 | t.Outlet.z([1:4]) = 1.0/NComp; |
---|
| 86 | |
---|
| 87 | OPTIONS |
---|
| 88 | relativeAccuracy = 1e-5; |
---|
| 89 | time = [0:100:1000]; |
---|
| 90 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.