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
RevLine 
[89]1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
[1]3*
[89]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.
[1]7*
[89]8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
[1]11*
[89]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 $
[1]24*--------------------------------------------------------------------*#
25
[89]26using "heat_exchangers/heater";
[1]27
28FlowSheet Heater_Project
29
[133]30PARAMETERS
31
32        PP                      as Plugin (File="vrpp");
33        NComp           as Integer;
34       
[1]35DEVICES
36
37        heater                  as Heater;
[133]38        streamcold1     as source;
[1]39       
40       
41CONNECTIONS
42
[133]43        streamcold1.Outlet      to heater.Inlet(1);
[1]44       
45SET
46
[133]47        PP.LiquidModel  = "PR";
48        PP.VapourModel  = "PR";
[1]49       
50        PP.Components   = ["water"];
51        NComp                   = PP.NumberOfComponents;
[45]52        heater.Ninlet          = 1;
[1]53
54SPECIFY
55
[133]56        streamcold1.Outlet.F            = 100   * "kmol/h";
57        streamcold1.Outlet.P            = 1     * "atm";
58        streamcold1.Outlet.T            = 343   * "K";
59    streamcold1.Outlet.z                = [1];
[1]60
61       
62       
63        heater.Outlet.T         = 363*"K";
64        heater.Outlet.P         = 1 * "atm";
65       
66       
67OPTIONS
68 
[133]69        Dynamic    = false;
[1]70       
71end
72
73FlowSheet Cooler_Project
74
[133]75PARAMETERS
76
77        PP                      as Plugin(File="vrpp");
78        NComp           as Integer;
79       
[1]80DEVICES
81
82        cooler                  as Cooler;
[133]83        streamcold1     as source;
[1]84       
85       
86CONNECTIONS
87
[133]88        streamcold1.Outlet      to cooler.Inlet(1);
[1]89       
90       
91SET
92
93        PP.LiquidModel  = "RK";
94        PP.VapourModel  = "RK";
95        PP.Components   = ["water"];
96        NComp                   = PP.NumberOfComponents;
[45]97        cooler.Ninlet          = 1;
[1]98
99SPECIFY
100
[133]101        streamcold1.Outlet.F            = 100   * "kmol/h";
102        streamcold1.Outlet.P            = 1     * "atm";
103        streamcold1.Outlet.T            = 343   * "K";
104    streamcold1.Outlet.z                = [1];
[1]105
106       
107       
108        cooler.Outlet.T         = 300*"K";
109        cooler.Outlet.P         = 1 * "atm";
110       
111       
112OPTIONS
113 
[133]114        Dynamic = false;
[1]115       
116       
117end
118
Note: See TracBrowser for help on using the repository browser.