source: mso/sample/heat_exchangers/sample_heater.mso @ 45

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

updated heat exchanger model

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1
2#*--------------------------------------------------------------------
3*
4* EMSO sample file.
5*
6* heater and Cooler
7*
8*--------------------------------------------------------------------*#
9
10using "heat_exchangers/heater.mso";
11
12FlowSheet Heater_Project
13
14DEVICES
15
16        heater                  as Heater;
17        streamcold1     as stream_therm;
18       
19       
20CONNECTIONS
21
22        streamcold1     to heater.Inlet(1);
23       
24       
25PARAMETERS
26
27        PP              as CalcObject (File="vrpp");
28        NComp   as Integer;
29       
30SET
31
32        PP.LiquidModel  = "RK";
33        PP.VapourModel  = "RK";
34       
35        PP.Components   = ["water"];
36        NComp                   = PP.NumberOfComponents;
37        heater.Ninlet   = 1;
38
39SPECIFY
40
41        streamcold1.F           = 100   * "kmol/h";
42        streamcold1.P           = 1     * "atm";
43        streamcold1.T           = 343   * "K";
44        streamcold1.v           = 0;
45    streamcold1.z               = [1];
46
47       
48       
49        heater.Outlet.T         = 363*"K";
50        heater.Outlet.P         = 1 * "atm";
51
52       
53       
54OPTIONS
55 
56        mode                    = "steady";
57       
58end
59
60FlowSheet Cooler_Project
61
62DEVICES
63
64        cooler                  as Cooler;
65        streamcold1     as stream_therm;
66       
67       
68CONNECTIONS
69
70        streamcold1     to cooler.Inlet(1);
71       
72       
73PARAMETERS
74
75        PP                      as CalcObject (File="vrpp");
76        NComp   as Integer;
77       
78SET
79
80        PP.LiquidModel  = "RK";
81        PP.VapourModel  = "RK";
82        PP.Components   = ["water"];
83        NComp                   = PP.NumberOfComponents;
84        cooler.Ninlet   = 1;
85
86SPECIFY
87
88        streamcold1.F           = 100   * "kmol/h";
89        streamcold1.P           = 1     * "atm";
90        streamcold1.T           = 343   * "K";
91        streamcold1.v           = 0;
92    streamcold1.z               = [1];
93
94       
95       
96        cooler.Outlet.T         = 300*"K";
97        cooler.Outlet.P         = 1 * "atm";
98       
99       
100OPTIONS
101 
102        mode                    = "steady";
103       
104end
105
Note: See TracBrowser for help on using the repository browser.