source: trunk/sample/stage_separators/sample_tank.mso @ 243

Last change on this file since 243 was 213, checked in by Rafael de Pelegrini Soares, 16 years ago

Adapted some samples to the new Plugin mechanism

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 file for tanks model
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO(www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_tank.mso 213 2007-03-15 19:40:55Z rafael $
24*--------------------------------------------------------------------*#
25using "stage_separators/tank";
26
27FlowSheet tank_Test
28        PARAMETERS
29        PP      as Plugin(Brief="Physical Properties",
30                Type="PP",
31                Components = ["methane", "isobutane", "benzene"],
32                LiquidModel = "PR",
33                VapourModel = "PR"
34        );
35        NComp   as Integer;
36        SET
37        NComp = PP.NumberOfComponents;
38       
39        VARIABLES
40        Qtank as heat_rate (Brief="Heat rate supplied to tank");
41       
42        DEVICES
43        t as tank;
44        s as source;
45       
46        CONNECTIONS
47        s.Outlet to t.Inlet;
48        Qtank to t.Q;
49       
50        SPECIFY
51        s.Outlet.P = 480 * 'kPa';
52        s.Outlet.T = 310 * 'K';
53        s.Outlet.F = 180 * 'kmol/h';
54        s.Outlet.z = 1.0/NComp;
55#       s.v = 0.698;
56       
57        Qtank = 0 * 'J/s';
58        t.Outlet.F = 179 * 'kmol/h';
59       
60        SET
61        t.Across = 2.20 * 'm^2';
62       
63        INITIAL
64        t.Outlet.T = 305 *'K';
65        t.Level = 0.5 * 'm';
66        t.Outlet.z([1:2]) = 1.0/NComp;
67       
68        OPTIONS
69        RelativeAccuracy = 1e-5;
70        TimeStep = 100;
71        TimeEnd = 1000;
72end
73
74FlowSheet tank_cylindrical_Test
75        PARAMETERS
76        PP      as Plugin(Brief="Physical Properties",
77                Type="PP",
78                Components = ["methane", "isobutane", "benzene"],
79                LiquidModel = "PR",
80                VapourModel = "PR"
81        );
82        NComp   as Integer;
83        SET
84        NComp = PP.NumberOfComponents;
85
86        VARIABLES
87        Qtank as heat_rate (Brief="Heat rate supplied to tank");
88       
89        DEVICES
90        t as tank_cylindrical;
91        s as source;
92       
93        CONNECTIONS
94        s.Outlet to t.Inlet;
95        Qtank to t.Q;
96       
97        SPECIFY
98        s.Outlet.F = 500 * 'kmol/h';
99        s.Outlet.T = 300 * 'K';
100        s.Outlet.P = 400 * 'kPa';
101        s.Outlet.z = 1/NComp;
102        #s.v = 0.368;
103
104        Qtank = 0 * 'J/s';
105        t.Outlet.F = 490 * 'kmol/h';
106       
107        SET
108        t.radius = 0.9 * 'm';
109        t.L = 7.12 * 'm';
110       
111        INITIAL
112        t.Outlet.T = 280*'K';
113        t.Level = 1 * 'm';
114        t.Outlet.z([1:2]) = 1.0/NComp;
115       
116        OPTIONS
117        RelativeAccuracy = 1e-5;
118        TimeStep = 100;
119        TimeEnd = 1000;
120end
Note: See TracBrowser for help on using the repository browser.