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