source: branches/newlanguage/sample/heat_exchangers/heater_project.mso @ 133

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

some modifications for the new language

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 model Heater and Cooler
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Gerson B. Bicca
23* $Id: heater_project.mso 133 2007-01-25 14:15:43Z bicca $
24*--------------------------------------------------------------------*#
25
26using "heat_exchangers/heater";
27
28FlowSheet Heater_Project
29
30PARAMETERS
31
32        PP                      as Plugin (File="vrpp");
33        NComp           as Integer;
34       
35DEVICES
36
37        heater                  as Heater;
38        streamcold1     as source;
39       
40       
41CONNECTIONS
42
43        streamcold1.Outlet      to heater.Inlet(1);
44       
45SET
46
47        PP.LiquidModel  = "PR";
48        PP.VapourModel  = "PR";
49       
50        PP.Components   = ["water"];
51        NComp                   = PP.NumberOfComponents;
52        heater.Ninlet          = 1;
53
54SPECIFY
55
56        streamcold1.Outlet.F            = 100   * "kmol/h";
57        streamcold1.Outlet.P            = 1     * "atm";
58        streamcold1.Outlet.T            = 343   * "K";
59    streamcold1.Outlet.z                = [1];
60
61       
62       
63        heater.Outlet.T         = 363*"K";
64        heater.Outlet.P         = 1 * "atm";
65       
66       
67OPTIONS
68 
69        Dynamic    = false;
70       
71end
72
73FlowSheet Cooler_Project
74
75PARAMETERS
76
77        PP                      as Plugin(File="vrpp");
78        NComp           as Integer;
79       
80DEVICES
81
82        cooler                  as Cooler;
83        streamcold1     as source;
84       
85       
86CONNECTIONS
87
88        streamcold1.Outlet      to cooler.Inlet(1);
89       
90       
91SET
92
93        PP.LiquidModel  = "RK";
94        PP.VapourModel  = "RK";
95        PP.Components   = ["water"];
96        NComp                   = PP.NumberOfComponents;
97        cooler.Ninlet          = 1;
98
99SPECIFY
100
101        streamcold1.Outlet.F            = 100   * "kmol/h";
102        streamcold1.Outlet.P            = 1     * "atm";
103        streamcold1.Outlet.T            = 343   * "K";
104    streamcold1.Outlet.z                = [1];
105
106       
107       
108        cooler.Outlet.T         = 300*"K";
109        cooler.Outlet.P         = 1 * "atm";
110       
111       
112OPTIONS
113 
114        Dynamic = false;
115       
116       
117end
118
Note: See TracBrowser for help on using the repository browser.