source: trunk/eml/costs/flash_cost.mso @ 355

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

Adding the cost models in the EML.

File size: 3.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* Model of costs for a dynamic flash
17*--------------------------------------------------------------------
18*       - Streams
19*               * a liquid outlet stream
20*               * a vapour outlet stream
21*               * a feed stream
22*
23*       - Assumptions
24*               * both phases are perfectly mixed
25*
26*       - Specify:
27*               * the feed stream;
28*               * the outlet flows: OutletV.F and OutletL.F
29*
30*       - Initial:
31*               * the flash initial temperature (OutletL.T)
32*               * the flash initial liquid level (Ll)
33*               * (NoComps - 1) OutletL (OR OutletV) compositions
34*
35*       - This model is valid if:
36*         369 kg < Equipment Weight (horizontal) < 415000kg
37*             2210 kg < Equipment Weight (vertical) < 103000kg
38*             0.92m < Di (horizontal) < 3.66m
39*             1.83m < Di (vertical) < 3.05m
40*             3.66m < Flash Length (vertical) < 6.10m
41*----------------------------------------------------------------------
42* Author: Núbia do Carmo Ferreira
43* $Id: flash.mso 118 2007-01-15 18:48:01Z rafael $
44*--------------------------------------------------------------------*#
45
46using "stage_separators/flash";
47
48Model flash_cost as flash
49        ATTRIBUTES
50        Pallete         = true;
51        Icon            = "icon/Flash";
52
53        PARAMETERS
54        Material                as Switcher (Valid = ["Stainless steell 304", "Stainless steel 316", "Carpenter 20CB_3", "Nickel 200", "Monel 400", "Inconel 600", "Incoloy 825", "Titanium"],
55                                                                                Default = "Stainless steel 304");
56        Cost(6,3)               as Real;
57        flash_length    as length (Brief = "Flash Length");
58        Div                     as length (Brief="Internal Diameter for vertical vases");
59        Dih                     as length (Brief="Internal Diameter for horizontal vases");
60        Ts                              as length (Brief="Thickness");
61        dens_mass_material as dens_mass (Brief = "Mass Density of the Material");
62        Pi                              as constant (Brief="Pi Number",Default=3.14159265);
63
64        VARIABLES
65        Ce as currency  (Brief="Capital Cost");
66        Cb as currency  (Brief="Basic Cost");
67        Ca as currency  (Brief="Cost for stairs, railing and platform");
68        Fm as positive  (Brief="Cost Factor based on the construction material");
69        Ws as mass              (Brief="Equipment Weight");
70
71        EQUATIONS
72       
73        "Capital Cost"
74        Ce = Cb*Fm + Ca;
75       
76        switch orientation
77                case "vertical":
78               
79        "Basic Cost"
80                Cb = 'US$'*exp(Cost(2,1) - Cost(2,2)*ln(Ws/'kg') + Cost(2,3)*(ln(Ws/'kg'))^2);
81               
82        "Cost for stairs, railing and platform"
83                Ca = 'US$'*Cost(4,1)*((Div^0.73960)/'m^0.73960')*((flash_length^0.70684)/'m^0.70684');
84       
85        "Equipment Weight for vertical vases"
86                Ws = dens_mass_material*Div*(flash_length + Cost(5,1)*Div)*Ts;
87                       
88                case "horizontal":
89               
90        "Basic Cost for horizontal flash"
91                Cb = 'US$'*exp(Cost(1,1) - Cost(1,2)*ln(Ws/'kg') + Cost(1,3)*(ln(Ws/'kg'))^2);
92
93        "Cost for stairs, railing and platform"
94                Ca = 'US$'*Cost(3,1)*((Dih^0.20294)/'m^0.20294');
95
96        "Equipment Weight for horizontal vases"
97                Ws = dens_mass_material*Dih*(flash_length + Cost(5,1)*Dih)*Ts*Pi;
98       
99        end     
100       
101        "Cost Factor based on the construction material"
102                Fm = Cost(6,1);
103
104end
Note: See TracBrowser for help on using the repository browser.