1 | #*---------------------------------------------- |
---|
2 | * FlowSheet generated automaticaly by EMSO-GUI |
---|
3 | *----------------------------------------------*# |
---|
4 | |
---|
5 | using "streams"; |
---|
6 | using "heat_exchangers/heater"; |
---|
7 | |
---|
8 | FlowSheet Cooler_Diagram |
---|
9 | PARAMETERS |
---|
10 | PP as Plugin(Brief="Physical Properties", |
---|
11 | Type="PP", |
---|
12 | Components = ["n-hexane","isobutane","n-pentane"], |
---|
13 | LiquidModel = "PR", |
---|
14 | VapourModel = "PR" |
---|
15 | ); |
---|
16 | NComp as Integer; |
---|
17 | SET |
---|
18 | NComp = PP.NumberOfComponents; |
---|
19 | |
---|
20 | DEVICES |
---|
21 | source_1 as source; |
---|
22 | |
---|
23 | SET |
---|
24 | source_1.ValidPhases = "Vapour-Liquid"; |
---|
25 | |
---|
26 | SPECIFY |
---|
27 | source_1.Composition(1) = 0.5; |
---|
28 | source_1.Composition(2) = 0.3; |
---|
29 | source_1.Composition(3) = 0.2; |
---|
30 | source_1.Fw = 749.552 * 'kg/h'; |
---|
31 | source_1.T_Cdeg = 65.85 * 'K'; |
---|
32 | source_1.P = 3 * 'atm'; |
---|
33 | |
---|
34 | INITIAL |
---|
35 | |
---|
36 | GUESS |
---|
37 | |
---|
38 | DEVICES |
---|
39 | heater_1 as heater; |
---|
40 | |
---|
41 | SET |
---|
42 | heater_1.Kvalues = "no"; |
---|
43 | |
---|
44 | SPECIFY |
---|
45 | heater_1.Outlet.P = 1 * 'atm'; |
---|
46 | |
---|
47 | INITIAL |
---|
48 | |
---|
49 | GUESS |
---|
50 | |
---|
51 | DEVICES |
---|
52 | simple_source_1 as simple_source; |
---|
53 | |
---|
54 | SET |
---|
55 | |
---|
56 | SPECIFY |
---|
57 | simple_source_1.MolarComposition(1) = 1; |
---|
58 | simple_source_1.MolarComposition(2) = 0; |
---|
59 | simple_source_1.MolarComposition(3) = 0; |
---|
60 | simple_source_1.F = 1 * 'kmol/h'; |
---|
61 | simple_source_1.T = 300 * 'K'; |
---|
62 | simple_source_1.P = 1 * 'atm'; |
---|
63 | |
---|
64 | INITIAL |
---|
65 | |
---|
66 | GUESS |
---|
67 | |
---|
68 | DEVICES |
---|
69 | simple_sink_1 as simple_sink; |
---|
70 | |
---|
71 | SET |
---|
72 | |
---|
73 | SPECIFY |
---|
74 | |
---|
75 | INITIAL |
---|
76 | |
---|
77 | GUESS |
---|
78 | |
---|
79 | DEVICES |
---|
80 | cooler_1 as cooler; |
---|
81 | |
---|
82 | SET |
---|
83 | cooler_1.Kvalues = "no"; |
---|
84 | |
---|
85 | SPECIFY |
---|
86 | cooler_1.Pdrop = 15 * 'kPa'; |
---|
87 | cooler_1.Outlet.T = 303 * 'K'; |
---|
88 | |
---|
89 | INITIAL |
---|
90 | |
---|
91 | GUESS |
---|
92 | |
---|
93 | DEVICES |
---|
94 | simple_sink_1_1 as simple_sink; |
---|
95 | |
---|
96 | SET |
---|
97 | |
---|
98 | SPECIFY |
---|
99 | |
---|
100 | INITIAL |
---|
101 | |
---|
102 | GUESS |
---|
103 | |
---|
104 | CONNECTIONS |
---|
105 | simple_source_1.Outlet to heater_1.Inlet; |
---|
106 | heater_1.Outlet to simple_sink_1.Inlet; |
---|
107 | source_1.Outlet to cooler_1.Inlet; |
---|
108 | cooler_1.Heat to heater_1.Heat; |
---|
109 | cooler_1.Outlet to simple_sink_1_1.Inlet; |
---|
110 | |
---|
111 | OPTIONS |
---|
112 | Dynamic = false; |
---|
113 | Integration = "original"; |
---|
114 | NLASolver( |
---|
115 | File = "sundials", |
---|
116 | RelativeAccuracy = 1e-3, |
---|
117 | AbsoluteAccuracy = 1e-6, |
---|
118 | MaxIterations = 100 |
---|
119 | ); |
---|
120 | DAESolver( |
---|
121 | File = "sundials", |
---|
122 | RelativeAccuracy = 1e-3, |
---|
123 | AbsoluteAccuracy = 1e-6, |
---|
124 | EventAccuracy = 1e-2 |
---|
125 | ); |
---|
126 | end |
---|