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:
849 bytes
|
Line | |
---|
1 | |
---|
2 | using "mixers_splitters/mixer"; |
---|
3 | |
---|
4 | FlowSheet SampleMixer |
---|
5 | |
---|
6 | PARAMETERS |
---|
7 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
8 | NComp as Integer; |
---|
9 | Ninlet as Integer; |
---|
10 | |
---|
11 | DEVICES |
---|
12 | stream1 as stream_therm; |
---|
13 | stream2 as stream_therm; |
---|
14 | mixer as mixer; |
---|
15 | |
---|
16 | |
---|
17 | SET |
---|
18 | PP.Components = [ "n-butane", "benzene", "n-octane" ]; |
---|
19 | PP.LiquidModel = "PR"; |
---|
20 | PP.VapourModel = "PR"; |
---|
21 | NComp = PP.NumberOfComponents; |
---|
22 | mixer.Ninlet = 2; |
---|
23 | |
---|
24 | CONNECTIONS |
---|
25 | stream1 to mixer.Inlet_mixer(1); |
---|
26 | stream2 to mixer.Inlet_mixer(2); |
---|
27 | |
---|
28 | SPECIFY |
---|
29 | |
---|
30 | stream1.F = 20 * "kmol/h"; |
---|
31 | stream1.P = 120 * "kPa"; |
---|
32 | stream1.T = 400 * "K"; |
---|
33 | stream1.z = [0.5, 0.1, 0.4]; |
---|
34 | stream1.v = 1; |
---|
35 | |
---|
36 | |
---|
37 | stream2.F = 10 * "kmol/h"; |
---|
38 | stream2.P = 120 * "kPa"; |
---|
39 | stream2.T = 290 * "K"; |
---|
40 | stream2.z = [0.5, 0.1, 0.4]; |
---|
41 | stream2.v = 0.0; |
---|
42 | |
---|
43 | OPTIONS |
---|
44 | mode = "steady"; |
---|
45 | outputLevel = "high"; |
---|
46 | relativeAccuracy = 1e-6; |
---|
47 | |
---|
48 | end |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.