1 | using "streams"; |
---|
2 | |
---|
3 | FlowSheet test_args |
---|
4 | |
---|
5 | PARAMETERS |
---|
6 | PP as Plugin(Brief="Physical Properties",Type="PP", |
---|
7 | Components = ["n-hexane","n-octane"], |
---|
8 | LiquidModel = "UNIFAC", |
---|
9 | VapourModel = "PR"); |
---|
10 | NComp as Integer; |
---|
11 | |
---|
12 | VARIABLES |
---|
13 | Psat(NComp) as pressure; |
---|
14 | Ts(2) as temperature; |
---|
15 | |
---|
16 | DEVICES |
---|
17 | s1 as source; |
---|
18 | |
---|
19 | SET |
---|
20 | NComp = PP.NumberOfComponents; |
---|
21 | |
---|
22 | SPECIFY |
---|
23 | |
---|
24 | s1.Outlet.z = [0.2, 0.8]; |
---|
25 | s1.Outlet.T = 300 * 'K'; |
---|
26 | s1.Outlet.F = 500 * 'kmol/h'; |
---|
27 | |
---|
28 | EQUATIONS |
---|
29 | |
---|
30 | s1.Outlet.P=2*exp(-time/'h')*'atm'; |
---|
31 | |
---|
32 | Ts(1) = s1.Outlet.T; |
---|
33 | Ts(2) = s1.Outlet.T; |
---|
34 | |
---|
35 | # Psat = PP.VapourPressure(s1.Outlet.T); |
---|
36 | Psat = PP.VapourPressure(Ts(1)); |
---|
37 | |
---|
38 | OPTIONS |
---|
39 | TimeStep = 0.1; |
---|
40 | TimeEnd = 9; |
---|
41 | TimeUnit = 'h'; |
---|
42 | end |
---|
43 | |
---|
44 | |
---|
45 | |
---|