1 | |
---|
2 | using "heat_exchangers/Mheatex"; |
---|
3 | |
---|
4 | FlowSheet MHeater |
---|
5 | |
---|
6 | PARAMETERS |
---|
7 | |
---|
8 | PP as Plugin (File="vrpp"); |
---|
9 | NComp as Integer (Brief="Number Components"); |
---|
10 | |
---|
11 | DEVICES |
---|
12 | |
---|
13 | Mheater as Mheatex; |
---|
14 | streamcold1 as source; |
---|
15 | streamhot1 as source; |
---|
16 | streamhot2 as source; |
---|
17 | streamcold2 as source; |
---|
18 | |
---|
19 | CONNECTIONS |
---|
20 | streamcold1.Outlet to Mheater.Inlet.Cold(1); |
---|
21 | streamhot1.Outlet to Mheater.Inlet.Hot(1); |
---|
22 | streamhot2.Outlet to Mheater.Inlet.Hot(2); |
---|
23 | streamcold2.Outlet to Mheater.Inlet.Cold(2); |
---|
24 | |
---|
25 | SET |
---|
26 | |
---|
27 | PP.LiquidModel = "PR"; |
---|
28 | PP.VapourModel = "PR"; |
---|
29 | PP.Components = ["water","methanol","benzene", "toluene"]; |
---|
30 | NComp = PP.NumberOfComponents; |
---|
31 | Mheater.Nhot = 2; |
---|
32 | Mheater.Ncold = 2; |
---|
33 | |
---|
34 | SPECIFY |
---|
35 | #===================================================================== |
---|
36 | # Cold Streams |
---|
37 | #===================================================================== |
---|
38 | streamcold1.Outlet.F = 500 * "kmol/h"; |
---|
39 | streamcold1.Outlet.P = 1 * "atm"; |
---|
40 | streamcold1.Outlet.T = 278 * "K"; |
---|
41 | streamcold1.Outlet.z = [1,0,0,0]; |
---|
42 | |
---|
43 | streamcold2.Outlet.F = 50 * "kmol/h"; |
---|
44 | streamcold2.Outlet.P = 1 * "atm"; |
---|
45 | streamcold2.Outlet.T = 298 * "K"; |
---|
46 | streamcold2.Outlet.z = [1,0,0,0]; |
---|
47 | |
---|
48 | #===================================================================== |
---|
49 | # Hot Streams |
---|
50 | #===================================================================== |
---|
51 | streamhot1.Outlet.F = 100* "kmol/h"; |
---|
52 | streamhot1.Outlet.P = 1 * "atm"; |
---|
53 | streamhot1.Outlet.T = 330 * "K"; |
---|
54 | streamhot1.Outlet.z = [0,1,0,0]; |
---|
55 | |
---|
56 | streamhot2.Outlet.F = 100* "kmol/h"; |
---|
57 | streamhot2.Outlet.P = 1 * "atm"; |
---|
58 | streamhot2.Outlet.T = 340 * "K"; |
---|
59 | streamhot2.Outlet.z = [0,0,0.75,0.25]; |
---|
60 | |
---|
61 | #===================================================================== |
---|
62 | # Temperature Outlet |
---|
63 | #===================================================================== |
---|
64 | Mheater.Outlet.Hot(1).T = 308*"K"; |
---|
65 | Mheater.Outlet.Hot(2).T = 303*"K"; |
---|
66 | Mheater.Outlet.Cold(2).T = 299*"K"; |
---|
67 | |
---|
68 | #===================================================================== |
---|
69 | # Pressure Outlet |
---|
70 | #===================================================================== |
---|
71 | Mheater.Outlet.Hot(1).P = 1 * "atm"; |
---|
72 | Mheater.Outlet.Hot(2).P = 1 * "atm"; |
---|
73 | Mheater.Outlet.Cold(1).P = 1 * "atm"; |
---|
74 | Mheater.Outlet.Cold(2).P = 1 * "atm"; |
---|
75 | |
---|
76 | OPTIONS |
---|
77 | |
---|
78 | Dynamic = false; |
---|
79 | |
---|
80 | end |
---|
81 | |
---|
82 | |
---|
83 | |
---|