source: trunk/sample/stage_separators/sample_tray.mso @ 335

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

Updated solver options for the new language

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 model tray
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_tray.mso 247 2007-04-24 13:44:18Z rafael $
24*--------------------------------------------------------------------*#
25using "stage_separators/tray";
26
27FlowSheet tray_Test
28        PARAMETERS
29        PP      as Plugin(Brief="Physical Properties",
30                Type="PP",
31                Components = [ "n-pentane", "benzene"],
32                LiquidModel = "PR",
33                VapourModel = "PR"
34        );
35        NComp   as Integer;
36
37        SET
38        NComp = PP.NumberOfComponents;
39       
40        DEVICES
41        t1 as tray;
42        feed as source;
43        inL as liquid_stream;
44        inV as vapour_stream;
45       
46        CONNECTIONS
47        feed.Outlet to t1.Inlet;
48        inL to t1.InletL;
49        inV to t1.InletV;
50       
51        SPECIFY
52        feed.Outlet.F = 113.4 * 'kmol/h';
53        feed.Outlet.T = 291 * 'K';
54        feed.Outlet.P = 1.66 * 'atm';
55        feed.Outlet.z = [0.5, 0.5];
56       
57        inL.P = 165 * 'kPa';
58        inL.T = 310 * 'K';
59        inL.F = 61.99 * 'kmol/h';
60        inL.z = [0.1641, 0.8359];
61
62        inV.F = 147.1 * 'kmol/h';
63        inV.P = 150 * 'kPa';
64        inV.T = 321 * 'K';
65        inV.z = [0.0584, 0.9416];
66
67        t1.Emv = 1;
68        t1.OutletV.F = 147.1 * 'kmol/h';
69
70        SET
71        t1.V = 4 * 'ft^3';
72        t1.Ah = 0.394 * 'ft^2';
73        t1.lw = 20.94 * 'in';
74        t1.hw = 0.125 * 'ft';
75        t1.Q = 0 * 'kW';
76        t1.beta = 0.6;
77        t1.alfa = 4;
78        t1.Ap = 3.94 * 'ft^2';
79       
80        INITIAL
81        t1.OutletL.T = 290 *'K';
82        t1.Level = 0.9 * t1.hw;
83        t1.OutletL.z(1) = 0.5;
84       
85        OPTIONS
86        TimeEnd = 100;
87end
Note: See TracBrowser for help on using the repository browser.