source: branches/newlanguage/sample/heat_exchangers/Mheatex_sample2.mso @ 144

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

testing some modifications for the new language

File size: 3.4 KB
RevLine 
[144]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 counter flow Multistream Heat Exchanger
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Gerson B. Bicca
23* $Id: Mheatex_sample2.mso 135 2007-01-25 20:00:26Z bicca $
24*--------------------------------------------------------------------*#
[135]25using "heat_exchangers/Mheatex";
26
[144]27FlowSheet MHeatex_counter
[135]28
29PARAMETERS
30
31        PP                      as Plugin       (File="vrpp");
32        NComp           as Integer      (Brief="Number Components");
33
[131]34DEVICES
35
36        Mheater                 as Mheatex;
37        streamcold1     as source;
38        streamhot1              as source;
39        streamhot2              as source;
[135]40        streamcold2     as source;
[131]41       
42CONNECTIONS
43        streamcold1.Outlet      to Mheater.Inlet.Cold(1);
44        streamhot1.Outlet       to Mheater.Inlet.Hot(1);
45        streamhot2.Outlet       to Mheater.Inlet.Hot(2);
46        streamcold2.Outlet      to Mheater.Inlet.Cold(2);
47       
48SET
49
[135]50        PP.LiquidModel          = "PR";
[131]51        PP.VapourModel  = "PR";
52        PP.Components   = ["water","methanol","benzene", "toluene"];
[135]53        NComp                           = PP.NumberOfComponents;
54        Mheater.Nhot      = 2;
55    Mheater.Ncold     = 2;
[131]56       
[144]57    Mheater.FlowDirection    = "counter";
58       
[131]59SPECIFY
60#=====================================================================
61#       Cold Streams
62#=====================================================================
63        streamcold1.Outlet.F            = 500   * "kmol/h";
64        streamcold1.Outlet.P            = 1     * "atm";
65        streamcold1.Outlet.T            = 278   * "K";
[135]66    streamcold1.Outlet.z                = [1,0,0,0];
[131]67       
68        streamcold2.Outlet.F            = 50   * "kmol/h";
69        streamcold2.Outlet.P            = 1     * "atm";
70        streamcold2.Outlet.T            = 298   * "K";
71    streamcold2.Outlet.z                = [1,0,0,0];
72
73#=====================================================================
74#       Hot Streams 
75#=====================================================================
76        streamhot1.Outlet.F             = 100* "kmol/h";
77        streamhot1.Outlet.P             = 1     * "atm";
78        streamhot1.Outlet.T             = 330   * "K";
79    streamhot1.Outlet.z                 = [0,1,0,0];
80       
81        streamhot2.Outlet.F             = 100* "kmol/h";
82        streamhot2.Outlet.P             = 1     * "atm";
83        streamhot2.Outlet.T             = 340   * "K";
84    streamhot2.Outlet.z                 = [0,0,0.75,0.25];
85       
86#=====================================================================
87#       Temperature Outlet
88#===================================================================== 
89        Mheater.Outlet.Hot(1).T         = 308*"K";
90        Mheater.Outlet.Hot(2).T         = 303*"K";
91        Mheater.Outlet.Cold(2).T        = 299*"K";
92
93#=====================================================================
94#       Pressure Outlet
95#=====================================================================
96        Mheater.Outlet.Hot(1).P         = 1 * "atm";
97        Mheater.Outlet.Hot(2).P         = 1 * "atm";
[135]98        Mheater.Outlet.Cold(1).P   = 1 * "atm";
99        Mheater.Outlet.Cold(2).P   = 1 * "atm";
[131]100       
101OPTIONS
102 
103        Dynamic = false;
104       
105end
106
107
108
Note: See TracBrowser for help on using the repository browser.