source: trunk/sample/heat_exchangers/Sample_Heater.mso @ 320

Last change on this file since 320 was 320, checked in by gerson bicca, 16 years ago

updated samples with heater and cooler model

File size: 3.9 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 cooler and heater operation
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Gerson B. Bicca
23* $Id: Sample_Heater.mso 89 2006-12-11 15:26:11Z paula $
24*--------------------------------------------------------------------*#
25
26using "heat_exchangers/heater";
27
28FlowSheet Sample_Heater
29       
30DEVICES
31
32        Heater                  as heater;
33        streamcold      as simple_source;
34        Heat                            as energy_source;
35       
36CONNECTIONS
37
38        streamcold.Outlet       to Heater.Inlet(1);
39        Heat.OutletQ                            to Heater.InletHeat;
40       
41       
42PARAMETERS
43
44        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
45                                                                        Components      = ["isobutane","benzene"]);
46        NComp           as Integer;
47       
48SET
49
50        NComp           = PP.NumberOfComponents;
51        Heater.Ninlet           = 1;
52
53SPECIFY
54
55        streamcold.Outlet.F             = 10   * 'kmol/h';
56        streamcold.Outlet.P             = 1     * 'atm';
57        streamcold.Outlet.T             = 310   * 'K';
58    streamcold.Outlet.z                 = [0.5,0.5];
59
60        Heater.Outlet.T                 = 360*'K';
61        Heater.Outlet.P                 = 0.999* 'atm';
62        Heat.OutletQ.Q                          = 10* 'kW';
63       
64OPTIONS
65        Dynamic = false;
66end
67
68FlowSheet Sample_Cooler
69       
70DEVICES
71
72        Cooler                  as heater;
73        streamhot       as simple_source;
74        Heat                            as energy_source;
75       
76CONNECTIONS
77
78        streamhot.Outlet        to Cooler.Inlet(1);
79        Heat.OutletQ                    to Cooler.InletHeat;
80       
81       
82PARAMETERS
83
84        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
85                                                                        Components      = ["isobutane","benzene"]);
86        NComp           as Integer;
87       
88SET
89
90        NComp           = PP.NumberOfComponents;
91        Cooler.Ninlet           = 1;
92
93SPECIFY
94
95        streamhot.Outlet.F              = 10   * 'kmol/h';
96        streamhot.Outlet.P              = 1     * 'atm';
97        streamhot.Outlet.T              = 310   * 'K';
98    streamhot.Outlet.z                  = [0.5,0.5];
99
100        Cooler.Outlet.T                 = 300*'K';
101        Cooler.Outlet.P                 = 0.999* 'atm';
102        Heat.OutletQ.Q                          = 0* 'J/s';
103       
104OPTIONS
105        Dynamic = false;
106end
107
108FlowSheet Sample_TwoHeater
109       
110DEVICES
111
112        Heater1                         as heater;
113        Heater2                         as heater;
114        streamcold1     as simple_source;
115        streamcold2     as simple_source;
116        streamcold3     as simple_source;
117        Heat                                    as energy_source;
118       
119CONNECTIONS
120
121        streamcold1.Outlet      to Heater1.Inlet(1);
122        streamcold2.Outlet      to Heater1.Inlet(2);
123        streamcold3.Outlet      to Heater1.Inlet(3);
124        Heat.OutletQ                            to Heater1.InletHeat;
125        Heater1.OutletHeat      to Heater2.InletHeat;
126        Heater1.Outlet                  to Heater2.Inlet(1);
127       
128PARAMETERS
129
130        PP                      as Plugin (Type ="PP", LiquidModel = "PR",VapourModel  = "PR",
131                                                                        Components      = ["water","isobutane","benzene"]);
132        NComp           as Integer;
133       
134SET
135
136        NComp           = PP.NumberOfComponents;
137        Heater1.Ninlet          = 3;
138        Heater2.Ninlet          = 1;
139       
140       
141SPECIFY
142
143        streamcold1.Outlet.F            = 10  * 'kmol/h';
144        streamcold1.Outlet.P            = 1     * 'atm';
145        streamcold1.Outlet.T            = 300   * 'K';
146    streamcold1.Outlet.z                = [1,0,0];
147       
148        streamcold2.Outlet.F            = 5   * 'kmol/h';
149        streamcold2.Outlet.P            = 1     * 'atm';
150        streamcold2.Outlet.T            = 300   * 'K';
151    streamcold2.Outlet.z                = [0,1,0];
152       
153        streamcold3.Outlet.F            = 12   * 'kmol/h';
154        streamcold3.Outlet.P            = 1     * 'atm';
155        streamcold3.Outlet.T            = 315   * 'K';
156    streamcold3.Outlet.z                = [0.2,0.5,0.3];
157
158        Heater1.Outlet.T                        = 353*'K';
159        Heater1.Outlet.P                = 0.999* 'atm';
160        Heat.OutletQ.Q                          = 0* 'J/s';
161       
162        Heater2.Outlet.P        = 0.999* 'atm';
163        Heater2.Outlet.T                = 370*'K';
164       
165OPTIONS
166        Dynamic = false;
167end
Note: See TracBrowser for help on using the repository browser.