source: trunk/sample/miscellaneous/sample_tanks.mso

Last change on this file was 574, checked in by Rafael de Pelegrini Soares, 14 years ago

Updated the models to work with some language constraints

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 buffer tank series.
17*--------------------------------------------------------------------
18* Author: Rafael de Pelegrini Soares
19* $Id: sample_tanks.mso 574 2008-07-25 14:18:50Z rafael $
20*--------------------------------------------------------------------*#
21
22using "stage_separators/tank";
23
24FlowSheet UmTanque
25        DEVICES
26        Fin     as flow_vol;
27        Tanque  as tank_simplified;
28       
29        CONNECTIONS
30        Fin          to Tanque.Fin;
31       
32        SET
33        Tanque.k = 8 * 'm^2.5/h';
34        Tanque.A = 4 * 'm^2';
35       
36        SPECIFY
37        Fin = 10 * 'm^3/h';
38
39        INITIAL
40        "altura inicial"
41        Tanque.Level = 1 * 'm';
42       
43        OPTIONS
44        TimeStep = 0.1;
45        TimeEnd = 5;
46        TimeUnit = 'h' ;
47end
48
49FlowSheet TresTanques
50        DEVICES
51        Fin     as flow_vol;
52        Tanque1 as tank_simplified;
53        Tanque2 as tank_simplified;
54        Tanque3 as tank_simplified;
55       
56        CONNECTIONS
57        Fin          to Tanque1.Fin;
58        Tanque1.Fout to Tanque2.Fin;
59        Tanque2.Fout to Tanque3.Fin;
60       
61        SET
62        Tanque2.k = 8 * 'm^2.5/h';
63        Tanque2.A = 4 * 'm^2';
64       
65        SPECIFY
66        Fin = 10 * 'm^3/h';
67
68        INITIAL
69        "altura inicial"
70        Tanque1.Level = 1 * 'm';
71        Tanque2.Level = 2 * 'm';
72        Tanque3.Level = 1 * 'm';
73       
74        OPTIONS
75        TimeStep = 0.5;
76        TimeEnd = 15;
77        TimeUnit = 'h' ;
78end
Note: See TracBrowser for help on using the repository browser.