1 | |
---|
2 | using "heat_exchangers/HeatExchangerSimplified"; |
---|
3 | |
---|
4 | FlowSheet HeatExchanger_Block |
---|
5 | |
---|
6 | DEVICES |
---|
7 | #=============================================================== |
---|
8 | # Heat Exchanger Shortcut Block - NTU Method |
---|
9 | #=============================================================== |
---|
10 | |
---|
11 | exchanger as HeatExchanger_NTU; |
---|
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 | |
---|
26 | SET |
---|
27 | |
---|
28 | PP.LiquidModel = "RK"; |
---|
29 | PP.VapourModel = "RK"; |
---|
30 | PP.Components = ["water"]; |
---|
31 | NComp = PP.NumberOfComponents; |
---|
32 | HE.FlowDirection = "Counter"; |
---|
33 | |
---|
34 | SPECIFY |
---|
35 | #============================================ |
---|
36 | # Hot Streams |
---|
37 | #============================================ |
---|
38 | streamhot.F = 100 * "kmol/h"; |
---|
39 | streamhot.T = 450 * "K"; |
---|
40 | streamhot.v = 1; |
---|
41 | streamhot.P = 1.5 * "atm"; |
---|
42 | streamhot.z = [1]; |
---|
43 | |
---|
44 | #============================================ |
---|
45 | # Cold Streams |
---|
46 | #============================================ |
---|
47 | streamcold.F = 50 * "kmol/h"; |
---|
48 | streamcold.P = 1 * "atm"; |
---|
49 | streamcold.T = 350 * "K"; |
---|
50 | streamcold.v = 0; |
---|
51 | streamcold.z = [1]; |
---|
52 | |
---|
53 | #============================================ |
---|
54 | # Required Details |
---|
55 | #============================================ |
---|
56 | exchanger.Details.A = 65 *"m^2"; |
---|
57 | exchanger.Details.U = 0.74 *"W/m^2/K"; |
---|
58 | exchanger.PressureDrop.Hot.Pdrop = 0*"atm"; |
---|
59 | exchanger.PressureDrop.Cold.Pdrop = 0*"atm"; |
---|
60 | |
---|
61 | OPTIONS |
---|
62 | #============================================ |
---|
63 | # Simulation Options |
---|
64 | #============================================ |
---|
65 | mode = "steady"; |
---|
66 | outputLevel = "high"; |
---|
67 | relativeAccuracy = 1e-8; |
---|
68 | |
---|
69 | end |
---|