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

Last change on this file since 42 was 42, checked in by Paula Bettio Staudt, 16 years ago

Stage separators modifications

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