source: trunk/sample/reactors/sample_vol_tank.mso

Last change on this file was 427, checked in by Rodolfo Rodrigues, 16 years ago

Updated and added sample to vol_tank.mso

File size: 1.5 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 of calculation of a tank volume
17*----------------------------------------------------------------------
18*
19*       Sample to test calculation routine of tank volume and liquid level
20* tank volume pursuant to geometry and orientation.
21*
22*----------------------------------------------------------------------
23* Author: Rodolfo Rodrigues
24* $Id$
25*--------------------------------------------------------------------*#
26
27using "reactors/vol_tank";
28
29
30FlowSheet sample_vol_tank
31        DEVICES
32        Tank    as vol_tank;
33       
34        VARIABLES
35        frac    as fraction;
36       
37        EQUATIONS
38        frac = Tank.V/Tank.Vt;
39       
40        SET
41#       Tank.Geometry = "flat";
42        Tank.Geometry = "spherical";
43       
44        Tank.Orientation = "vertical";
45#       Tank.Orientation = "horizontal";
46       
47        SPECIFY
48        Tank.L  = 2*'m'; # height
49        Tank.D  = 0.75*'m';     # diameter     
50        Tank.Level      = 0.7*'m'; # liquid level
51       
52        OPTIONS
53        Dynamic = false;
54end
Note: See TracBrowser for help on using the repository browser.