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

Last change on this file since 976 was 749, checked in by gerson bicca, 14 years ago

added samples in mso version

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