source: branches/newlanguage/sample/miscellaneous/sample_tanks.mso @ 131

Last change on this file since 131 was 113, checked in by Argimiro Resende Secchi, 16 years ago

Added single tank example.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 113 2007-01-15 01:45:28Z arge $
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        "Vazao de entrada"
38        Fin = 10 * "m^3/h";
39
40        INITIAL
41        "altura inicial"
42        Tanque.h = 1 * "m";
43       
44        OPTIONS
45        time = [0:0.1:5] * "h" ;
46end
47
48FlowSheet TresTanques
49        DEVICES
50        Fin     as flow_vol;
51        Tanque1 as tank_simplified;
52        Tanque2 as tank_simplified;
53        Tanque3 as tank_simplified;
54       
55        CONNECTIONS
56        Fin          to Tanque1.Fin;
57        Tanque1.Fout to Tanque2.Fin;
58        Tanque2.Fout to Tanque3.Fin;
59       
60        SET
61        Tanque2.k = 8 * "m^2.5/h";
62        Tanque2.A = 4 * "m^2";
63       
64        SPECIFY
65        "Vazao de entrada"
66        Fin = 10 * "m^3/h";
67
68        INITIAL
69        "altura inicial"
70        Tanque1.h = 1 * "m";
71        Tanque2.h = 2 * "m";
72        Tanque3.h = 1 * "m";
73       
74        OPTIONS
75        time = [0:0.5:15] * "h" ;
76end
Note: See TracBrowser for help on using the repository browser.