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

Last change on this file since 1 was 1, checked in by Rafael de Pelegrini Soares, 16 years ago

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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        outputLevel = "medium";
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        outputLevel = "medium";
82        time = [0:100:1000];
83end
Note: See TracBrowser for help on using the repository browser.