source: mso/sample/heat_exchangers/Sample_Simplified.mso @ 7

Last change on this file since 7 was 7, checked in by Rafael de Pelegrini Soares, 17 years ago

Fixed some problems with samples

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1
2using "heat_exchangers/HeatExchangerSimplified.mso";
3
4FlowSheet LMTD_Method
5DEVICES
6
7        exchanger       as HeatExchanger_LMTD;
8        streamhot       as stream_therm;
9        streamcold      as stream_therm;
10
11CONNECTIONS
12
13        streamhot       to exchanger.Inlet.Hot;
14        streamcold      to exchanger.Inlet.Cold;
15       
16PARAMETERS
17        PP                      as CalcObject   (File="vrpp");
18        HE              as CalcObject   (File="Heatex");
19        NComp           as Integer;
20SET
21
22        PP.LiquidModel     = "RK";
23        PP.VapourModel     = "RK";
24        PP.Components           = ["water"];
25        NComp                           = PP.NumberOfComponents;
26       
27#       HE.FlowDirection      = "Cocurrent";
28        HE.FlowDirection      = "Counter";
29
30SPECIFY
31
32        exchanger.Details.A                             = 65.031*"m^2";
33        exchanger.Details.U                             = 0.75*"W/(m^2*K)";
34        exchanger.PressureDrop.Hot.Pdrop        = 0*"atm";
35        exchanger.PressureDrop.Cold.Pdrop   = 0*"atm";
36        exchanger.Fc                                    = 1;
37       
38        streamhot.F                                     = 1000    * "kmol/h";
39        streamhot.T                                     = 450     * "K";
40        streamhot.v                                     = 1;
41        streamhot.P                                     = 1.5     * "atm";
42        streamhot.z                                     = [1];
43
44        streamcold.F                                    = 500   * "kmol/h";
45        streamcold.P                                    = 1     * "atm";
46        streamcold.T                                    = 350   * "K";
47        streamcold.v                                    = 0;
48    streamcold.z                                        = [1];
49       
50OPTIONS
51 mode                     = "steady";
52 relativeAccuracy = 1e-6;
53
54end
55
56FlowSheet NTU_Method
57DEVICES
58
59        exchanger       as HeatExchanger_NTU;
60        streamhot       as stream_therm;
61        streamcold      as stream_therm;
62
63CONNECTIONS
64
65        streamhot       to exchanger.Inlet.Hot;
66        streamcold      to exchanger.Inlet.Cold;
67       
68PARAMETERS
69        PP                      as CalcObject   (File="vrpp");
70        HE              as CalcObject   (File="Heatex");
71        NComp           as Integer;
72SET
73
74        PP.LiquidModel     = "RK";
75        PP.VapourModel     = "RK";
76        PP.Components           = ["water"];
77        NComp                           = PP.NumberOfComponents;
78       
79#       HE.FlowDirection      = "Cocurrent";
80        HE.FlowDirection      = "Counter";
81
82SPECIFY
83
84        exchanger.Details.A                             = 65.031*"m^2";
85        exchanger.Details.U                             = 0.75*"W/(m^2*K)";
86        exchanger.PressureDrop.Hot.Pdrop        = 0*"atm";
87        exchanger.PressureDrop.Cold.Pdrop   = 0*"atm";
88       
89        streamhot.F                                     = 1000    * "kmol/h";
90        streamhot.T                                     = 450     * "K";
91        streamhot.v                                     = 1;
92        streamhot.P                                     = 1.5     * "atm";
93        streamhot.z                                     = [1];
94
95        streamcold.F                                    = 500   * "kmol/h";
96        streamcold.P                                    = 1     * "atm";
97        streamcold.T                                    = 350   * "K";
98        streamcold.v                                    = 0;
99    streamcold.z                                        = [1];
100       
101OPTIONS
102 mode                     = "steady";
103 relativeAccuracy = 1e-6;
104
105end
106
Note: See TracBrowser for help on using the repository browser.