source: trunk/eml/costs/HeatExchangerSimplified_cost.mso @ 981

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

updated

File size: 8.3 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/Heatex";
21
22# This model is valid if 14m^2 < A < 1100 m^2
23
24Model HeatExchanger_LMTD_cost as Heatex_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( [(0.5*InletHot.P+0.5*OutletHot.P) , (0.5*InletCold.P+0.5*OutletCold.P)] );
48       
49
50        "Capital Cost"
51        Ce = Cb*Fd*Fp*Fm;
52       
53        "Basic Cost"
54        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(A/'m^2') + Cost(1,3)*(ln(A/'m^2'))^2);
55
56        "Cost Factor based on the type of the heat exchanger"
57        Fd = exp(Cost(2,1) + Cost(2,2)*ln(A/'m^2') + Cost(2,3)*ln(A/'m^2'));
58
59        if Pmax <= 700 * 'kPa' then
60                "Cost Factor based on the project pressure" # verificar
61                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
62        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
63                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
64        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
65                Fp = Cost(6,1) + Cost(6,2)*ln(A/'m^2');
66        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
67                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2');
68        else
69                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2'); # verificar
70        end
71        end
72        end
73        end
74       
75        "Cost Factor based on the construction material"
76        Fm = Cost(8,1) + Cost(8,2)*ln(A/'m^2');
77
78end
79
80Model Shell_and_tubes_LMTD_cost as Heatex_LMTD
81        ATTRIBUTES
82        Pallete         = true;
83        Icon            = "icon/Shell_and_Tubes_LMTD";
84        Brief           = "Shell and Tubes Heat Exchanger with 1 or 2 shell pass - LMTD Method";
85        Info            =
86        "to be documented.";
87
88        PARAMETERS
89        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
90                        Default = "Stainless steel 316");
91        Cost(8,3) as Real;
92       
93        VARIABLES       
94        Ce as currency          (Brief="Capital Cost");
95        Cb as currency          (Brief="Basic Cost");
96        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
97        Fp as positive          (Brief="Cost Factor based on the project pressure");
98        Fm as positive          (Brief="Cost Factor based on the construction material");
99        Pmax  as pressure       (Brief="Average  Pressure");
100
101SET
102
103ExchangerType = "Shell and Tube";
104
105        EQUATIONS
106        "Average pressure"
107        Pmax = max( [(0.5*InletHot.P+0.5*OutletHot.P) , (0.5*InletCold.P+0.5*OutletCold.P)] );
108       
109        "Capital Cost"
110        Ce = Cb*Fd*Fp*Fm;
111       
112        "Basic Cost"
113        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(A/'m^2') + Cost(1,3)*(ln(A/'m^2'))^2);
114
115        "Cost Factor based on the type of the heat exchanger"
116        Fd = exp(Cost(2,1) + Cost(2,2)*ln(A/'m^2') + Cost(2,3)*ln(A/'m^2'));
117
118        if Pmax <= 700 * 'kPa' then
119                "Cost Factor based on the project pressure" # verificar
120                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
121        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
122                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
123        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
124                Fp = Cost(6,1) + Cost(6,2)*ln(A/'m^2');
125        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
126                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2');
127        else
128                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2'); # verificar
129        end
130        end
131        end
132        end
133       
134        "Cost Factor based on the construction material"
135        Fm = Cost(8,1) + Cost(8,2)*ln(A/'m^2');
136       
137end
138
139Model HeatExchanger_NTU_cost as Heatex_NTU
140        ATTRIBUTES
141        Pallete         = true;
142        Icon            = "icon/HeatExchanger_NTU";     
143        Brief           = "Heat Exchanger Block - NTU Method";
144        Info            =
145        "to be documented.";
146
147        PARAMETERS
148        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
149                        Default = "Stainless steel 316");
150        Cost(8,3) as Real;
151       
152        VARIABLES       
153        Ce as currency          (Brief="Capital Cost");
154        Cb as currency          (Brief="Basic Cost");
155        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
156        Fp as positive          (Brief="Cost Factor based on the project pressure");
157        Fm as positive          (Brief="Cost Factor based on the construction material");
158        Pmax  as pressure       (Brief="Average  Pressure");
159
160        EQUATIONS
161        "Average pressure"
162        Pmax = max( [(0.5*InletHot.P+0.5*OutletHot.P) , (0.5*InletCold.P+0.5*OutletCold.P)] );
163       
164        "Capital Cost"
165        Ce = Cb*Fd*Fp*Fm;
166       
167        "Basic Cost"
168        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(A/'m^2') + Cost(1,3)*(ln(A/'m^2'))^2);
169
170        "Cost Factor based on the type of the heat exchanger"
171        Fd = exp(Cost(2,1) + Cost(2,2)*ln(A/'m^2') + Cost(2,3)*ln(A/'m^2'));
172
173        if Pmax <= 700 * 'kPa' then
174                "Cost Factor based on the project pressure" # verificar
175                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
176        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
177                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
178        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
179                Fp = Cost(6,1) + Cost(6,2)*ln(A/'m^2');
180        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
181                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2');
182        else
183                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2'); # verificar
184        end
185        end
186        end
187        end
188       
189        "Cost Factor based on the construction material"
190        Fm = Cost(8,1) + Cost(8,2)*ln(A/'m^2');
191       
192end
193
194Model Shell_and_tubes_NTU_cost as Heatex_NTU
195        ATTRIBUTES
196        Pallete         = true;
197        Icon            = "icon/Shell_and_Tubes_NTU";           
198        Brief           = "Shell and Tubes Heat Exchanger with 1 or 2 shell pass - NTU Method";
199        Info            =
200        "to be documented.";
201
202        PARAMETERS
203        Material as Switcher (Valid = ["Stainless steel 316", "Stainless steel 304", "Stainless steel 347", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium", "Hastelloy"],
204                        Default = "Stainless steel 316");
205        Cost(8,3) as Real;
206       
207        VARIABLES       
208        Ce as currency          (Brief="Capital Cost");
209        Cb as currency          (Brief="Basic Cost");
210        Fd as positive          (Brief="Cost Factor based on the type of the heat exchanger");
211        Fp as positive          (Brief="Cost Factor based on the project pressure");
212        Fm as positive          (Brief="Cost Factor based on the construction material");
213        Pmax  as pressure       (Brief="Average  Pressure");
214
215SET
216
217ExchangerType = "Shell and Tube";
218
219        EQUATIONS
220        "Average pressure"
221                Pmax = max( [(0.5*InletHot.P+0.5*OutletHot.P) , (0.5*InletCold.P+0.5*OutletCold.P)] );
222       
223        "Capital Cost"
224        Ce = Cb*Fd*Fp*Fm;
225       
226        "Basic Cost"
227        Cb = 'US$'*exp(Cost(1,1) + Cost(1,2)*ln(A/'m^2') + Cost(1,3)*(ln(A/'m^2'))^2);
228
229        "Cost Factor based on the type of the heat exchanger"
230        Fd = exp(Cost(2,1) + Cost(2,2)*ln(A/'m^2') + Cost(2,3)*ln(A/'m^2'));
231
232        if Pmax <= 700 * 'kPa' then
233                "Cost Factor based on the project pressure" # verificar
234                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
235        else if 700 * 'kPa' < Pmax and Pmax < 2100 * 'kPa' then
236                Fp = Cost(5,1) + Cost(5,2)*ln(A/'m^2');
237        else if 2100 * 'kPa' < Pmax and Pmax < 4200 * 'kPa' then
238                Fp = Cost(6,1) + Cost(6,2)*ln(A/'m^2');
239        else if 4200 * 'kPa' < Pmax and Pmax < 6200 * 'kPa' then
240                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2');
241        else
242                Fp = Cost(7,1) + Cost(7,2)*ln(A/'m^2'); # verificar
243        end
244        end
245        end
246        end
247       
248        "Cost Factor based on the construction material"
249        Fm = Cost(8,1) + Cost(8,2)*ln(A/'m^2');
250
251end
252
Note: See TracBrowser for help on using the repository browser.