source: trunk/sample/heat_exchangers/Heater_Diagram.mso @ 993

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

added samples in mso version

File size: 1.4 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "heat_exchangers/heater";
6using "streams";
7
8FlowSheet Heater_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        heater_1 as heater;
22
23        SET
24        heater_1.Kvalues = "no";
25
26        SPECIFY
27        heater_1.Outlet.T = 330 * 'K';
28        heater_1.Outlet.P = 2.5 * 'atm';
29
30        INITIAL
31
32        GUESS
33
34        DEVICES
35        source_1 as source;
36
37        SET
38        source_1.ValidPhases = "Vapour-Liquid";
39
40        SPECIFY
41        source_1.Composition(1) = 0.5;
42        source_1.Composition(2) = 0.3;
43        source_1.Composition(3) = 0.2;
44        source_1.F = 10 * 'kmol/h';
45        source_1.T_Cdeg = 29.85 * 'K';
46        source_1.P = 3 * 'atm';
47
48        INITIAL
49
50        GUESS
51
52        DEVICES
53        sink_1 as sink;
54
55        SET
56
57        SPECIFY
58
59        INITIAL
60
61        GUESS
62
63        DEVICES
64        energy_source_1 as energy_source;
65
66        SET
67
68        SPECIFY
69
70        INITIAL
71
72        GUESS
73
74        CONNECTIONS
75        heater_1.Outlet to sink_1.Inlet;
76        energy_source_1.OutletQ to heater_1.Heat;
77        source_1.Outlet to heater_1.Inlet;
78
79        OPTIONS
80        Dynamic = false;
81        Integration = "original";
82        NLASolver(
83                File = "sundials",
84                RelativeAccuracy = 1e-3,
85                AbsoluteAccuracy = 1e-6,
86                MaxIterations = 100
87        );
88        DAESolver(
89                File = "",
90                RelativeAccuracy = 1e-3,
91                AbsoluteAccuracy = 1e-6,
92                EventAccuracy = 1e-2
93        );
94end
Note: See TracBrowser for help on using the repository browser.