source: branches/newlanguage/sample/heat_exchangers/Sample_Mheatex.mso @ 180

Last change on this file since 180 was 179, checked in by gerson bicca, 17 years ago

fixed problem with UOM

File size: 5.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* Sample file with Multistream Heat Exchanger - counter and cocurrent flow
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Gerson B. Bicca
23* $Id: sample_Mheatex.mso 135 2007-01-25 20:00:26Z bicca $
24*--------------------------------------------------------------------*#
25using "heat_exchangers/Mheatex";
26
27FlowSheet Mheatex_cocurrent
28       
29DEVICES
30
31        Mheater         as Mheatex;
32
33        streamhot1              as liquid_stream;
34        streamcold1     as liquid_stream;
35        streamcold2     as liquid_stream;
36       
37PARAMETERS
38
39        PP                      as Plugin       (File="vrpp");
40        NComp           as Integer      (Brief="Number Components");
41       
42SET
43
44        PP.LiquidModel          = "PR";
45        PP.VapourModel  = "PR";
46        PP.Components   = ["water","methanol","benzene","toluene"];
47        NComp                           = PP.NumberOfComponents;
48       
49        Mheater.Nhot          = 1;
50    Mheater.Ncold         = 2;
51       
52        Mheater.FlowDirection  = "cocurrent";
53       
54CONNECTIONS
55
56        streamcold1     to Mheater.InletCold(1);
57        streamhot1      to Mheater.InletHot(1);
58        streamcold2     to Mheater.InletCold(2);
59       
60SPECIFY
61#=====================================================================
62#       Correction Factor
63#=====================================================================
64        Mheater.Method.Fc   = 1;
65
66#=====================================================================
67#       Cold Streams
68#=====================================================================
69        streamcold1.F           = 500   * 'kmol/h';
70        streamcold1.P           = 1     * 'atm';
71        streamcold1.T           = 293   * 'K';
72        streamcold1.z           = [1,0,0,0];
73
74        streamcold2.F           = 50   * 'kmol/h';
75        streamcold2.P           = 1     * 'atm';
76        streamcold2.T           = 315   * 'K';
77    streamcold2.z               = [0,0.1,0.65,0.25];
78
79#=====================================================================
80#       Hot Streams
81#=====================================================================
82        streamhot1.F            = 100* 'kmol/h';
83        streamhot1.P            = 1     * 'atm';
84        streamhot1.T            = 400   * 'K';
85    streamhot1.z                        = [1,0,0,0];
86
87#=====================================================================
88#       Temperature Outlet
89#===================================================================== 
90        Mheater.OutletHot(1).T  = 370*'K';
91        Mheater.OutletCold(2).T    = 330*'K';
92       
93#=====================================================================
94#       Pressure Outlet
95#=====================================================================
96        Mheater.OutletHot(1).P          = 1 * 'atm';
97        Mheater.OutletCold(1).P   = 1 * 'atm';
98        Mheater.OutletCold(2).P   = 1 * 'atm';
99       
100OPTIONS
101        Dynamic     = false;
102        GuessFile    = "GuessMheatex";
103
104end     
105
106FlowSheet Mheatex_counter
107       
108DEVICES
109
110        Mheater         as Mheatex;
111       
112        streamhot1              as liquid_stream;
113        streamcold1     as liquid_stream;
114        streamcold2     as liquid_stream;
115       
116PARAMETERS
117
118        PP                      as Plugin       (File="vrpp");
119        NComp           as Integer      (Brief="Number Components");
120       
121SET
122
123        PP.LiquidModel          = "PR";
124        PP.VapourModel  = "PR";
125        PP.Components   = ["water","methanol","benzene","toluene"];
126        NComp                           = PP.NumberOfComponents;
127       
128        Mheater.Nhot          = 1;
129    Mheater.Ncold         = 2;
130       
131        Mheater.FlowDirection  = "counter";
132       
133CONNECTIONS
134
135        streamcold1     to Mheater.InletCold(1);
136        streamhot1      to Mheater.InletHot(1);
137        streamcold2     to Mheater.InletCold(2);
138       
139SPECIFY
140
141#=====================================================================
142#       Correction Factor
143#=====================================================================
144        Mheater.Method.Fc   = 1;
145
146#=====================================================================
147#       Cold Streams
148#=====================================================================
149        streamcold1.F           = 500   * 'kmol/h';
150        streamcold1.P           = 1     * 'atm';
151        streamcold1.T           = 293   * 'K';
152        streamcold1.z           = [1,0,0,0];
153
154        streamcold2.F           = 50   * 'kmol/h';
155        streamcold2.P           = 1     * 'atm';
156        streamcold2.T           = 315   * 'K';
157    streamcold2.z               = [0,0.1,0.65,0.25];
158
159#=====================================================================
160#       Hot Streams
161#=====================================================================
162        streamhot1.F            = 100* 'kmol/h';
163        streamhot1.P            = 1     * 'atm';
164        streamhot1.T            = 400   * 'K';
165    streamhot1.z                        = [1,0,0,0];
166
167#=====================================================================
168#       Temperature Outlet
169#===================================================================== 
170        Mheater.OutletHot(1).T  = 370*'K';
171        Mheater.OutletCold(2).T    = 330*'K';
172       
173#=====================================================================
174#       Pressure Outlet
175#=====================================================================
176        Mheater.OutletHot(1).P          = 1 * 'atm';
177        Mheater.OutletCold(1).P   = 1 * 'atm';
178        Mheater.OutletCold(2).P   = 1 * 'atm';
179
180OPTIONS
181
182        Dynamic     = false;
183        GuessFile    = "GuessMheatex";
184       
185end
186       
Note: See TracBrowser for help on using the repository browser.