source: branches/packed/eml/costs/HeatExchangerSimplified_cost.mso @ 448

Last change on this file since 448 was 331, checked in by Argimiro Resende Secchi, 16 years ago

Adding the cost models in the EML.

File size: 8.5 KB
Line 
1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*--------------------------------------------------------------------
16* Author: Núbia do Carmo Ferreira
17* $Id: HeatExchangerDetailed.mso 197 2007-03-08 14:31:57Z bicca $
18*------------------------------------------------------------------*#
19
20using "heat_exchangers/HeatExchangerSimplified";
21
22# This model is valid if 14m^2 < A < 1100 m^2
23
24Model HeatExchanger_LMTD_cost as HeatExchanger_LMTD
25        ATTRIBUTES
26        Pallete         = true;
27        Icon            = "icon/HeatExchanger_LMTD";           
28        Brief           = "Heat Exchanger Block - LMTD Method";
29        Info            =
30        "to be documented.";
31
32        PARAMETERS
33        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
34                        Default = "Stainless steel 316");
35        Cost(8,3) as Real;
36       
37        VARIABLES       
38        Ce as currency          (Brief="Capital Cost");
39        Cb as currency          (Brief="Basic Cost");
40        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
41        Fp as positive          (Brief="Cost Factor based on the project pressure");
42        Fm as positive          (Brief="Cost Factor based on the construction material");
43        Pmax  as pressure       (Brief="Average  Pressure");
44
45        EQUATIONS
46        "Average pressure"
47        Pmax = max( [HotSide.Properties.Average.P , ColdSide.Properties.Average.P] );
48       
49        "Capital Cost"
50        Ce = Cb*Fd*Fp*Fm;
51       
52        "Basic Cost"
53        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(Details.A/'m^2') + Cost(1,3)*(ln(Details.A/'m^2'))^2);
54
55        "Cost Factor based on the type of the heat exchanger"
56        Fd = exp(Cost(2,1) + Cost(2,2)*ln(Details.A/'m^2') + Cost(2,3)*ln(Details.A/'m^2'));
57
58        if Pmax <= 700 * 'kPa' then
59                "Cost Factor based on the project pressure" # verificar
60                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
61        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
62                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
63        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
64                Fp = Cost(6,1) + Cost(6,2)*ln(Details.A/'m^2');
65        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
66                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2');
67        else
68                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2'); # verificar
69        end
70        end
71        end
72        end
73       
74        "Cost Factor based on the construction material"
75        Fm = Cost(8,1) + Cost(8,2)*ln(Details.A/'m^2');
76       
77end
78
79Model Shell_and_tubes_LMTD_cost as Shell_and_Tubes_LMTD
80        ATTRIBUTES
81        Pallete         = true;
82        Icon            = "icon/Shell_and_Tubes_LMTD";
83        Brief           = "Shell and Tubes Heat Exchanger with 1 or 2 shell pass - LMTD Method";
84        Info            =
85        "to be documented.";
86
87        PARAMETERS
88        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
89                        Default = "Stainless steel 316");
90        Cost(8,3) as Real;
91       
92        VARIABLES       
93        Ce as currency          (Brief="Capital Cost");
94        Cb as currency          (Brief="Basic Cost");
95        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
96        Fp as positive          (Brief="Cost Factor based on the project pressure");
97        Fm as positive          (Brief="Cost Factor based on the construction material");
98        Pmax  as pressure       (Brief="Average  Pressure");
99
100        EQUATIONS
101        "Average pressure"
102        Pmax = max( [HotSide.Properties.Average.P , ColdSide.Properties.Average.P] );
103       
104        "Capital Cost"
105        Ce = Cb*Fd*Fp*Fm;
106       
107        "Basic Cost"
108        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(Details.A/'m^2') + Cost(1,3)*(ln(Details.A/'m^2'))^2);
109
110        "Cost Factor based on the type of the heat exchanger"
111        Fd = exp(Cost(2,1) + Cost(2,2)*ln(Details.A/'m^2') + Cost(2,3)*ln(Details.A/'m^2'));
112
113        if Pmax <= 700 * 'kPa' then
114                "Cost Factor based on the project pressure" # verificar
115                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
116        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
117                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
118        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
119                Fp = Cost(6,1) + Cost(6,2)*ln(Details.A/'m^2');
120        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
121                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2');
122        else
123                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2'); # verificar
124        end
125        end
126        end
127        end
128       
129        "Cost Factor based on the construction material"
130        Fm = Cost(8,1) + Cost(8,2)*ln(Details.A/'m^2');
131       
132end
133
134Model HeatExchanger_NTU_cost as HeatExchanger_NTU
135        ATTRIBUTES
136        Pallete         = true;
137        Icon            = "icon/HeatExchanger_NTU";     
138        Brief           = "Heat Exchanger Block - NTU Method";
139        Info            =
140        "to be documented.";
141
142        PARAMETERS
143        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
144                        Default = "Stainless steel 316");
145        Cost(8,3) as Real;
146       
147        VARIABLES       
148        Ce as currency          (Brief="Capital Cost");
149        Cb as currency          (Brief="Basic Cost");
150        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
151        Fp as positive          (Brief="Cost Factor based on the project pressure");
152        Fm as positive          (Brief="Cost Factor based on the construction material");
153        Pmax  as pressure       (Brief="Average  Pressure");
154
155        EQUATIONS
156        "Average pressure"
157        Pmax = max( [HotSide.Properties.Average.P , ColdSide.Properties.Average.P] );
158       
159        "Capital Cost"
160        Ce = Cb*Fd*Fp*Fm;
161       
162        "Basic Cost"
163        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(Details.A/'m^2') + Cost(1,3)*(ln(Details.A/'m^2'))^2);
164
165        "Cost Factor based on the type of the heat exchanger"
166        Fd = exp(Cost(2,1) + Cost(2,2)*ln(Details.A/'m^2') + Cost(2,3)*ln(Details.A/'m^2'));
167
168        if Pmax <= 700 * 'kPa' then
169                "Cost Factor based on the project pressure" # verificar
170                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
171        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
172                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
173        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
174                Fp = Cost(6,1) + Cost(6,2)*ln(Details.A/'m^2');
175        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
176                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2');
177        else
178                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2'); # verificar
179        end
180        end
181        end
182        end
183       
184        "Cost Factor based on the construction material"
185        Fm = Cost(8,1) + Cost(8,2)*ln(Details.A/'m^2');
186       
187end
188
189Model Shell_and_tubes_NTU_cost as Shell_and_Tubes_NTU
190        ATTRIBUTES
191        Pallete         = true;
192        Icon            = "icon/Shell_and_Tubes_NTU";           
193        Brief           = "Shell and Tubes Heat Exchanger with 1 or 2 shell pass - NTU Method";
194        Info            =
195        "to be documented.";
196
197        PARAMETERS
198        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
199                        Default = "Stainless steel 316");
200        Cost(8,3) as Real;
201       
202        VARIABLES       
203        Ce as currency          (Brief="Capital Cost");
204        Cb as currency          (Brief="Basic Cost");
205        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
206        Fp as positive          (Brief="Cost Factor based on the project pressure");
207        Fm as positive          (Brief="Cost Factor based on the construction material");
208        Pmax  as pressure       (Brief="Average  Pressure");
209
210        EQUATIONS
211        "Average pressure"
212        Pmax = max( [HotSide.Properties.Average.P , ColdSide.Properties.Average.P] );
213       
214        "Capital Cost"
215        Ce = Cb*Fd*Fp*Fm;
216       
217        "Basic Cost"
218        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(Details.A/'m^2') + Cost(1,3)*(ln(Details.A/'m^2'))^2);
219
220        "Cost Factor based on the type of the heat exchanger"
221        Fd = exp(Cost(2,1) + Cost(2,2)*ln(Details.A/'m^2') + Cost(2,3)*ln(Details.A/'m^2'));
222
223        if Pmax <= 700 * 'kPa' then
224                "Cost Factor based on the project pressure" # verificar
225                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
226        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
227                Fp = Cost(5,1) + Cost(5,2)*ln(Details.A/'m^2');
228        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
229                Fp = Cost(6,1) + Cost(6,2)*ln(Details.A/'m^2');
230        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
231                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2');
232        else
233                Fp = Cost(7,1) + Cost(7,2)*ln(Details.A/'m^2'); # verificar
234        end
235        end
236        end
237        end
238       
239        "Cost Factor based on the construction material"
240        Fm = Cost(8,1) + Cost(8,2)*ln(Details.A/'m^2');
241       
242end
243
Note: See TracBrowser for help on using the repository browser.