source: trunk/sample/heat_exchangers/Sample_Simplified.mso @ 998

Last change on this file since 998 was 992, checked in by Argimiro Resende Secchi, 6 years ago

fixing some examples

File size: 2.0 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "heat_exchangers/Heatex";
6
7FlowSheet Sample_Simplified
8        PARAMETERS
9        PP as Plugin(Brief="Physical Properties",
10                Type="PP",
11                Components = ["water","n-butane","benzene"],
12                LiquidModel = "SRK",
13                VapourModel = "SRK"
14        );
15        NComp as Integer;
16        SET
17        NComp = PP.NumberOfComponents;
18
19        DEVICES
20        Heatex_NTU_1 as Heatex_NTU;
21
22        SET
23        Heatex_NTU_1.ExchangerType = "Shell and Tube";
24
25        SPECIFY
26        Heatex_NTU_1.A = 17 * 'm^2';
27        Heatex_NTU_1.U = 3 * 'kW/m^2/K';
28        Heatex_NTU_1.PdropHotSide = 0 * 'kPa';
29        Heatex_NTU_1.PdropColdSide = 0 * 'kPa';
30
31        INITIAL
32
33        GUESS
34
35        DEVICES
36        simple_source_1 as simple_source;
37
38        SET
39
40        SPECIFY
41        simple_source_1.MolarComposition(1) = 1;
42        simple_source_1.MolarComposition(2) = 0;
43        simple_source_1.MolarComposition(3) = 0;
44        simple_source_1.F = 36 * 'kmol/h';
45        simple_source_1.T_Cdeg = 89.85;
46        simple_source_1.P = 1.18431 * 'atm';
47
48        INITIAL
49
50        GUESS
51
52        DEVICES
53        simple_source_2 as simple_source;
54
55        SET
56
57        SPECIFY
58        simple_source_2.MolarComposition(1) = 0.1;
59        simple_source_2.MolarComposition(2) = 0.7;
60        simple_source_2.MolarComposition(3) = 0.2;
61        simple_source_2.F = 10 * 'kmol/h';
62        simple_source_2.T = 313 * 'K';
63        simple_source_2.P = 1.18431 * 'atm';
64
65        INITIAL
66
67        GUESS
68
69        DEVICES
70        simple_sink_1 as simple_sink;
71
72        SET
73
74        SPECIFY
75
76        INITIAL
77
78        GUESS
79
80        DEVICES
81        simple_sink_2 as simple_sink;
82
83        SET
84
85        SPECIFY
86
87        INITIAL
88
89        GUESS
90
91        CONNECTIONS
92        simple_source_1.Outlet to Heatex_NTU_1.InletHot;
93        simple_source_2.Outlet to Heatex_NTU_1.InletCold;
94        Heatex_NTU_1.OutletCold to simple_sink_1.Inlet;
95        Heatex_NTU_1.OutletHot to simple_sink_2.Inlet;
96
97        OPTIONS
98        Dynamic = false;
99        Integration = "original";
100        NLASolver(
101                File = "sundials",
102                RelativeAccuracy = 1e-3,
103                AbsoluteAccuracy = 1e-6,
104                MaxIterations = 100
105        );
106        DAESolver(
107                File = "",
108                RelativeAccuracy = 1e-3,
109                AbsoluteAccuracy = 1e-6,
110                EventAccuracy = 1e-2
111        );
112end
Note: See TracBrowser for help on using the repository browser.