source: branches/gui/sample/costs/sample_reboiler_cost.mso @ 941

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

more updates

File size: 2.4 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* Sample file for reboilers model
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Núbia do Carmo Ferreira
23* $Id: sample_reboiler.mso 247 2007-04-24 13:44:18Z rafael $
24*--------------------------------------------------------------------*#
25using "costs/reboiler_cost";
26
27FlowSheet sample_reboiler_cost
28       
29        PARAMETERS
30        PP      as Plugin(Brief="Physical Properties",
31                Type="PP",
32                Components = [ "isobutane", "benzene"],
33                LiquidModel = "PR",
34                VapourModel = "PR"
35        );
36        NComp   as Integer;
37
38        SET
39        NComp = PP.NumberOfComponents;
40       
41        DEVICES
42        reb     as reboiler_cost;
43        feed    as stream;
44        bot             as source; # coming from bottom of a column
45        Q               as energy_source;
46
47        CONNECTIONS
48        feed to reb.Inlet;
49        bot.Outlet to reb.InletL;
50        Q.OutletQ to reb.InletQ;
51       
52        SPECIFY
53        feed.F = 0 * 'kmol/h'; # no feed
54        feed.T = 328 * 'K';
55        feed.P = 180 * 'kPa';
56        feed.z = [0.5, 0.5];
57        feed.v = 0;
58        feed.h = 0 * 'kJ/kmol';
59
60        bot.P = 185 * 'kPa';
61        bot.T = 327.7 * 'K';
62        bot.F = 180 * 'kmol/h';
63        bot.Composition = [0.006061, 0.9939];
64       
65        reb.OutletL.F = 68.4 * 'kmol/h';
66        reb.OutletV.F = 111.6 * 'kmol/h';
67
68        Q.OutletQ = 3.7743e6 * 'kJ/h';
69
70        SET
71        reb.V = 2 * 'm^3';
72        reb.Across = 1 * 'm^2';
73       
74        # costs
75        reb.Material = "Stainless steel 316";
76
77        reb.Cost(1,:) = [8.202,0.01506,0.06811];
78        reb.Cost(2,:) = [-0.9003,0.0906,0];
79        reb.Cost(3,:) = [1.35,0,0];
80        reb.Cost(4,:) = [-0.7844,0.0830,0];
81        reb.Cost(5,:) = [0.8955,0.04981,0];
82        reb.Cost(6,:) = [1.2002,0.07140,0];
83        reb.Cost(7,:) = [1.4272,0.12088,0];
84        reb.Cost(8,:) = [0.8608,0.23296,0];
85       
86        INITIAL
87        reb.OutletL.T = 320 *'K';
88        reb.Level = 1 * 'm';
89        reb.OutletL.z(2) = 0.9;
90       
91        OPTIONS
92        TimeEnd = 1000;
93        TimeStep = 20;
94end
Note: See TracBrowser for help on using the repository browser.