1 | |
---|
2 | using "heat_exchangers/HeatExchangerSimplified"; |
---|
3 | |
---|
4 | FlowSheet HeatExchanger_Multipass |
---|
5 | |
---|
6 | DEVICES |
---|
7 | #=============================================================== |
---|
8 | # Heat Exchanger Multipasses - LMTD Method |
---|
9 | #=============================================================== |
---|
10 | |
---|
11 | exchanger as Multipass_LMTD; |
---|
12 | streamhot as stream_therm; |
---|
13 | streamcold as stream_therm; |
---|
14 | |
---|
15 | CONNECTIONS |
---|
16 | |
---|
17 | streamhot to exchanger.Inlet.Hot; |
---|
18 | streamcold to exchanger.Inlet.Cold; |
---|
19 | |
---|
20 | PARAMETERS |
---|
21 | |
---|
22 | PP as CalcObject (File="vrpp.dll"); |
---|
23 | NComp as Integer; |
---|
24 | HE as CalcObject (File="Heatex.dll"); |
---|
25 | SET |
---|
26 | #=============================================================== |
---|
27 | # Components - State Equation - Nshell in series |
---|
28 | #=============================================================== |
---|
29 | |
---|
30 | PP.LiquidModel = "RK"; |
---|
31 | PP.VapourModel = "RK"; |
---|
32 | PP.Components = ["water"]; |
---|
33 | NComp = PP.NumberOfComponents; |
---|
34 | exchanger.Nshell = 2; |
---|
35 | |
---|
36 | SPECIFY |
---|
37 | #============================================ |
---|
38 | # Hot Streams |
---|
39 | #============================================ |
---|
40 | streamhot.F = 100 * "kmol/h"; |
---|
41 | streamhot.T = 450 * "K"; |
---|
42 | streamhot.v = 1; |
---|
43 | streamhot.P = 1.5 * "atm"; |
---|
44 | streamhot.z = [1]; |
---|
45 | |
---|
46 | #============================================ |
---|
47 | # Cold Streams |
---|
48 | #============================================ |
---|
49 | streamcold.F = 50 * "kmol/h"; |
---|
50 | streamcold.P = 1 * "atm"; |
---|
51 | streamcold.T = 350 * "K"; |
---|
52 | streamcold.v = 0; |
---|
53 | streamcold.z = [1]; |
---|
54 | |
---|
55 | #============================================ |
---|
56 | # Required Details |
---|
57 | #============================================ |
---|
58 | exchanger.Details.A = 65 *"m^2"; |
---|
59 | exchanger.Details.U = 0.74 *"W/m^2/K"; |
---|
60 | exchanger.PressureDrop.Hot.Pdrop = 0*"atm"; |
---|
61 | exchanger.PressureDrop.Cold.Pdrop = 0*"atm"; |
---|
62 | OPTIONS |
---|
63 | #============================================ |
---|
64 | # Simulation Options |
---|
65 | #============================================ |
---|
66 | mode = "steady"; |
---|
67 | outputLevel = "all"; |
---|
68 | relativeAccuracy = 1e-8; |
---|
69 | |
---|
70 | end |
---|