source: mso/sample/stage_separators/sample_tank.mso @ 39

Last change on this file since 39 was 33, checked in by Argimiro Resende Secchi, 17 years ago

clean up.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1using "stage_separators/tank";
2
3FlowSheet 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       
13        DEVICES
14        t as tank;
15        s as stream_therm;
16       
17        CONNECTIONS
18        s to t.Inlet;
19       
20        SPECIFY
21        s.P = 480 * "kPa";
22        s.T = 310 * "K";
23        s.F = 180 * "kmol/h";
24        s.z = 1.0/NComp;
25        s.v = 0.698;
26        t.Q = 0 * "J/s";
27        t.Outlet.F = 179 * "kmol/h";
28       
29        SET
30        t.Across = 2.20 * "m^2";
31       
32        INITIAL
33        t.Outlet.T = 305 *"K";
34        t.Level = 0.5 * "m";
35        t.Outlet.z([1:4]) = 1.0/NComp;
36       
37        OPTIONS
38        relativeAccuracy = 1e-5;
39        time = [0:100:1000];
40end
41
42FlowSheet tank_cylindrical_Test
43        PARAMETERS
44        PP      as CalcObject(Brief="Physical Properties",File="vrpp");
45        NComp   as Integer;
46        SET
47        PP.Components = ["propane", "propylene", "1-butene","1,3-butadiene", "n-hexane"];
48        PP.LiquidModel = "PR";
49        PP.VapourModel = "PR";
50        NComp = PP.NumberOfComponents;
51       
52        DEVICES
53        t as tank_cylindrical;
54        s as stream_therm;
55       
56        CONNECTIONS
57        s to t.Inlet;
58       
59        SPECIFY
60        s.F = 500 * "kmol/h";
61        s.T = 300 * "K";
62        s.P = 400 * "kPa";
63        s.z = 1/NComp;
64        s.v = 0.368;
65
66        t.Q = 0 * "J/s";
67        t.Outlet.F = 490 * "kmol/h";
68       
69        SET
70        t.radius = 0.9 * "m";
71        t.L = 7.12 * "m";
72       
73        INITIAL
74        t.Outlet.T = 280*"K";
75        t.Level = 1 * "m";
76        t.Outlet.z([1:4]) = 1.0/NComp;
77       
78        OPTIONS
79        relativeAccuracy = 1e-5;
80        time = [0:100:1000];
81end
Note: See TracBrowser for help on using the repository browser.