Last change
on this file since 4 was
1,
checked in by Rafael de Pelegrini Soares, 17 years ago
|
Initial import of the library
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | using "pressure_changers/valve"; |
---|
2 | |
---|
3 | FlowSheet valve_Test_V |
---|
4 | # with vapour conditions |
---|
5 | PARAMETERS |
---|
6 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
7 | NComp as Integer; |
---|
8 | |
---|
9 | SET |
---|
10 | PP.Components = [ "isobutane", "n-pentane"]; |
---|
11 | PP.LiquidModel = "PR"; |
---|
12 | PP.VapourModel = "PR"; |
---|
13 | NComp = PP.NumberOfComponents; |
---|
14 | |
---|
15 | DEVICES |
---|
16 | v1 as valve; |
---|
17 | s1 as stream_therm; |
---|
18 | |
---|
19 | CONNECTIONS |
---|
20 | s1 to v1.Inlet; |
---|
21 | |
---|
22 | SPECIFY |
---|
23 | s1.P = 150 * "kPa"; |
---|
24 | s1.T = 281.75 * "K"; |
---|
25 | s1.z = [0.664, 0.336]; |
---|
26 | s1.v = 0.0; |
---|
27 | |
---|
28 | v1.x = 0.866; |
---|
29 | v1.Outlet.P = 148 * "kPa"; |
---|
30 | |
---|
31 | SET |
---|
32 | v1.k = 20 * "gal/min/psi^0.5"; |
---|
33 | |
---|
34 | OPTIONS |
---|
35 | relativeAccuracy = 1e-6; |
---|
36 | outputLevel = "high"; |
---|
37 | time = [0:20:1000]; |
---|
38 | mode = "steady"; |
---|
39 | |
---|
40 | end |
---|
41 | |
---|
42 | FlowSheet valve_Test_L |
---|
43 | #with liquid conditions |
---|
44 | PARAMETERS |
---|
45 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
46 | NComp as Integer; |
---|
47 | |
---|
48 | SET |
---|
49 | PP.Components = [ "isobutane", "n-pentane"]; |
---|
50 | PP.LiquidModel = "PR"; |
---|
51 | PP.VapourModel = "PR"; |
---|
52 | NComp = PP.NumberOfComponents; |
---|
53 | |
---|
54 | DEVICES |
---|
55 | v1 as valve; |
---|
56 | s1 as stream_therm; |
---|
57 | |
---|
58 | CONNECTIONS |
---|
59 | s1 to v1.Inlet; |
---|
60 | |
---|
61 | SPECIFY |
---|
62 | s1.P = 185 * "kPa"; |
---|
63 | s1.T = 328.12 * "K"; |
---|
64 | s1.z = [0.001848, 0.9982]; |
---|
65 | s1.v = 0.0; |
---|
66 | |
---|
67 | v1.x = 0.3363; |
---|
68 | v1.Outlet.P = 183 * "kPa"; |
---|
69 | |
---|
70 | SET |
---|
71 | v1.k = 20 * "gal/min/psi^0.5"; |
---|
72 | |
---|
73 | OPTIONS |
---|
74 | relativeAccuracy = 1e-6; |
---|
75 | outputLevel = "high"; |
---|
76 | time = [0:20:1000]; |
---|
77 | mode = "steady"; |
---|
78 | |
---|
79 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.