source: trunk/sample/miscellaneous/sample_tanks.mso @ 313

Last change on this file since 313 was 313, checked in by Argimiro Resende Secchi, 15 years ago

Change name of outlet energy stream to OutletQ.

  • 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 313 2007-07-14 16:45:55Z 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.Level = 1 * 'm';
43       
44        OPTIONS
45        TimeStep = 0.1;
46        TimeEnd = 5;
47        TimeUnit = 'h' ;
48end
49
50FlowSheet TresTanques
51        DEVICES
52        Fin     as flow_vol;
53        Tanque1 as tank_simplified;
54        Tanque2 as tank_simplified;
55        Tanque3 as tank_simplified;
56       
57        CONNECTIONS
58        Fin          to Tanque1.Fin;
59        Tanque1.Fout to Tanque2.Fin;
60        Tanque2.Fout to Tanque3.Fin;
61       
62        SET
63        Tanque2.k = 8 * 'm^2.5/h';
64        Tanque2.A = 4 * 'm^2';
65       
66        SPECIFY
67        "Vazao de entrada"
68        Fin = 10 * 'm^3/h';
69
70        INITIAL
71        "altura inicial"
72        Tanque1.Level = 1 * 'm';
73        Tanque2.Level = 2 * 'm';
74        Tanque3.Level = 1 * 'm';
75       
76        OPTIONS
77        TimeStep = 0.5;
78        TimeEnd = 15;
79        TimeUnit = 'h' ;
80end
Note: See TracBrowser for help on using the repository browser.