source: branches/newlanguage/sample/heat_exchangers/Mheatex_sample1.mso @ 131

Last change on this file since 131 was 131, checked in by gerson bicca, 16 years ago

updated

File size: 2.8 KB
RevLine 
[131]1using "Mheatex";
2
3FlowSheet Discreto_A
4       
5DEVICES
6
7        Mheater1                as Mheatex;
8        Mheater2                as Mheatex;
9       
10       
11        streamhot1              as stream_therm;
12        streamhot2              as stream_therm;
13       
14        streamcold1     as stream_therm;
15        streamcold2             as stream_therm;
16       
17PARAMETERS
18
19        PP                      as CalcObject   (File="vrpp");
20        NComp           as Integer              (Brief="Number Components");
21       
22SET
23
24        PP.LiquidModel  = "PR";
25        PP.VapourModel  = "PR";
26        PP.Components   = ["water","methanol","benzene","toluene"];
27        NComp                   = PP.NumberOfComponents;
28       
29        Mheater1.Nhot           = 2;
30        Mheater2.Nhot           = 2;
31       
32    Mheater1.Ncold          = 2;
33    Mheater2.Ncold          = 2;
34       
35        Mheater1.HE.FlowDirection  = "Cocurrent";
36        Mheater2.HE.FlowDirection  = "Cocurrent";
37       
38CONNECTIONS
39
40        streamcold1     to Mheater1.Inlet.Cold(1);
41        streamhot1      to Mheater1.Inlet.Hot(1);
42       
43        streamhot2      to Mheater1.Inlet.Hot(2);
44        streamcold2     to Mheater1.Inlet.Cold(2);
45       
46        Mheater1.Outlet.Cold(1)         to Mheater2.Inlet.Cold(1);
47       
48       
49        Mheater1.Outlet.Cold(2)         to Mheater2.Inlet.Cold(2);
50
51       
52       
53        Mheater1.Outlet.Hot(1)          to Mheater2.Inlet.Hot(1);
54
55       
56       
57        Mheater1.Outlet.Hot(2)          to Mheater2.Inlet.Hot(2);
58
59       
60       
61SPECIFY
62#=====================================================================
63#       Cold Streams
64#=====================================================================
65        streamcold1.F           = 500   * "kmol/h";
66        streamcold1.P           = 1     * "atm";
67        streamcold1.T           = 278   * "K";
68        streamcold1.v           = 0;
69        streamcold1.z           = [1,0,0,0];
70
71       
72        streamcold2.F           = 50   * "kmol/h";
73        streamcold2.P           = 1     * "atm";
74        streamcold2.T           = 298   * "K";
75        streamcold2.v           = 0;
76    streamcold2.z               = [1,0,0,0];
77
78
79#=====================================================================
80#       Hot Streams 
81#=====================================================================
82        streamhot1.F            = 100* "kmol/h";
83        streamhot1.P            = 1     * "atm";
84        streamhot1.T            = 330   * "K";
85        streamhot1.v            = 0;
86    streamhot1.z                = [0,1,0,0];
87
88        streamhot2.F            = 100* "kmol/h";
89        streamhot2.P            = 1     * "atm";
90        streamhot2.T            = 340   * "K";
91        streamhot2.v            = 0;
92    streamhot2.z                = [0,0,0.75,0.25];
93
94       
95#=====================================================================
96#       Temperature Outlet
97#===================================================================== 
98        Mheater2.Outlet.Hot(1).T        = 308*"K";
99        Mheater2.Outlet.Hot(2).T        = 303*"K";
100       
101        Mheater2.Outlet.Cold(2).T       = 299*"K";
102
103#=====================================================================
104#       Pressure Outlet
105#=====================================================================
106        Mheater2.Outlet.Hot(1).P        = 1 * "atm";
107        Mheater2.Outlet.Hot(2).P        = 1 * "atm";
108       
109        Mheater2.Outlet.Cold(1).P   = 1 * "atm";
110        Mheater2.Outlet.Cold(2).P   = 1 * "atm";
111       
112OPTIONS
113 
114        mode                    = "steady";
115        relativeAccuracy        = 1e-8;
116       
117end     
118
Note: See TracBrowser for help on using the repository browser.